Moving editor sources back into trunk
[taxeditor.git] / taxeditor-application / src / main / java / eu / etaxonomy / taxeditor / Perspective.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.taxonomictree.TaxonomicTreeView;
8
9 public class Perspective implements IPerspectiveFactory {
10
11 public static final String ID = "eu.etaxonomy.taxeditor.application.perspective";
12
13 /* (non-Javadoc)
14 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
15 */
16 public void createInitialLayout(IPageLayout layout) {
17 IFolderLayout navigationFolder = layout.createFolder("searchResults", IPageLayout.LEFT, 0.25f,
18 layout.getEditorArea());
19
20 // Note: ":*" is what allows us to call multiple searchResultView's with unique secondaryIds;
21 // this can only be done here, with a placeholder, not in plugin.xml
22 navigationFolder.addPlaceholder("eu.etaxonomy.taxeditor.navigation.search.searchResultView:*");
23 navigationFolder.addView(TaxonomicTreeView.ID);
24 }
25 }