Commit before seeing the effects of putting the property sheet provider on the Activator.
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / FreetextPropertiesPerspective.java
1 package eu.etaxonomy.taxeditor;
2
3 import org.eclipse.ui.IFolderLayout;
4 import org.eclipse.ui.IPageLayout;
5 import org.eclipse.ui.IPerspectiveFactory;
6
7 import eu.etaxonomy.taxeditor.view.LeftPane;
8 import eu.etaxonomy.taxeditor.view.NameListView;
9
10 public class FreetextPropertiesPerspective implements IPerspectiveFactory {
11
12 /*
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.
16 */
17
18 public static final String ID = "eu.etaxonomy.taxeditor.perspective.freetextproperties";
19
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);
26
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);
31 addFastViews(layout);
32
33 }
34 private void addFastViews(IPageLayout layout) {
35 System.currentTimeMillis();
36 }
37 }