<CR> in name relation - select name now the same as clicking the "Search" button.
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / SideBySidePerspective.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.navigation.FavoritesView;
8 import eu.etaxonomy.taxeditor.navigation.RecentNamesView;
9 import eu.etaxonomy.taxeditor.navigation.SearchView;
10 import eu.etaxonomy.taxeditor.navigation.TaxonomicTreeView;
11
12 public class SideBySidePerspective implements IPerspectiveFactory {
13
14 /*
15 * To remember the user's layout and window sizes for the next time they
16 * start your application, add configurer.setSaveAndRestore(true); to the
17 * initialize() method of WorkbenchAdvisor.
18 */
19
20 public static final String ID = "eu.etaxonomy.taxeditor.perspective.sidebyside";
21
22 public void createInitialLayout(IPageLayout layout) {
23 String editorArea = layout.getEditorArea();
24
25 // Note: plug-in org.eclipse.ui.ide necessary for
26 // IPageLayout.ID_PROBLEM_VIEW ("org.eclipse.ui.views.ProblemView") to run
27 // layout.addView(IPageLayout.ID_PROBLEM_VIEW, IPageLayout.BOTTOM, 0.8f, editorArea);
28
29 IFolderLayout folderLayoutLeft = layout.createFolder("leftfolder", IPageLayout.LEFT, 0.3f, editorArea);
30 folderLayoutLeft.addView(TaxonomicTreeView.ID);
31 // folderLayoutLeft.addView(SearchView.ID);
32
33 IFolderLayout folderLayoutBottomLeft = layout.createFolder("bottomleftfolder", IPageLayout.BOTTOM, 0.75f, "leftfolder");
34 folderLayoutBottomLeft.addView(RecentNamesView.ID);
35 // folderLayoutBottomLeft.addView(FavoritesView.ID);
36
37 layout.getViewLayout(TaxonomicTreeView.ID).setCloseable(false);
38 }
39 }