1 package eu
.etaxonomy
.taxeditor
;
3 import org
.eclipse
.ui
.IFolderLayout
;
4 import org
.eclipse
.ui
.IPageLayout
;
5 import org
.eclipse
.ui
.IPerspectiveFactory
;
7 import eu
.etaxonomy
.taxeditor
.view
.LeftPane
;
8 import eu
.etaxonomy
.taxeditor
.view
.NameListView
;
10 public class FreetextPropertiesPerspective
implements IPerspectiveFactory
{
13 * To remember the user's layout and window sizes for the next time they
14 * start your application, add configurer.setSaveAndRestore(true); to the
15 * initialize() method of WorkbenchAdvisor.
18 public static final String ID
= "eu.etaxonomy.taxeditor.perspective.freetextproperties";
20 public void createInitialLayout(IPageLayout layout
) {
21 String editorArea
= layout
.getEditorArea();
22 layout
.addStandaloneView(NameListView
.ID
, false, IPageLayout
.LEFT
, 0.30f
, editorArea
);
23 layout
.getViewLayout(NameListView
.ID
).setCloseable(false);
24 // layout.addStandaloneView(LeftPane.ID, false, IPageLayout.LEFT, 0.30f, editorArea);
25 // layout.getViewLayout(LeftPane.ID).setCloseable(false);
27 IFolderLayout folderLayout
= layout
.createFolder("folder", IPageLayout
.RIGHT
, 0.5f
, editorArea
);
28 folderLayout
.addView("org.eclipse.ui.views.PropertySheet");
29 layout
.getViewLayout("org.eclipse.ui.views.PropertySheet").setCloseable(false);
30 // layout.addView(UndoView.ID, IPageLayout.BOTTOM, 0.8f, editorArea);
34 private void addFastViews(IPageLayout layout
) {
35 System
.currentTimeMillis();