Eclipseplugins
PerspectiveFactory.java
1 package com.proalpha.pds.checks;
2 
3 import org.eclipse.ui.IFolderLayout;
4 import org.eclipse.ui.IPageLayout;
5 import org.eclipse.ui.IPerspectiveFactory;
6 
7 public class PerspectiveFactory implements IPerspectiveFactory {
8 
9  public void createInitialLayout(IPageLayout layout) {
10 
11  String editorArea = layout.getEditorArea();
12  IFolderLayout left = layout.createFolder("Check", IPageLayout.LEFT, 0.50f, editorArea);
13  IFolderLayout right = layout.createFolder("SubCheck", IPageLayout.BOTTOM, 0.50f, editorArea);
14  left.addView(CheckTreeView.ID);
15  right.addView(SubCheckView.ID);
16  }
17 }