1
|
package eu.etaxonomy.taxeditor.editor;
|
2
|
|
3
|
import org.eclipse.ui.IPageLayout;
|
4
|
import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin;
|
5
|
|
6
|
import org.eclipse.ui.IFolderLayout;
|
7
|
import org.eclipse.ui.IPerspectiveFactory;
|
8
|
import org.eclipse.ui.IWorkbenchPage;
|
9
|
import org.eclipse.ui.IWorkbenchWindow;
|
10
|
import org.eclipse.ui.PartInitException;
|
11
|
import org.eclipse.ui.WorkbenchException;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
14
|
|
15
|
public class Perspective implements IPerspectiveFactory {
|
16
|
|
17
|
public void createInitialLayout(IPageLayout layout) {
|
18
|
String editorArea = layout.getEditorArea();
|
19
|
|
20
|
IFolderLayout folderLayoutRight = layout.createFolder("rightfolder", IPageLayout.RIGHT, 0.5f, editorArea);
|
21
|
folderLayoutRight.addView(IPageLayout.ID_PROP_SHEET);
|
22
|
|
23
|
layout.getViewLayout(IPageLayout.ID_PROP_SHEET).setCloseable(false);
|
24
|
layout.getViewLayout(IPageLayout.ID_PROP_SHEET);
|
25
|
layout.getViewLayout("").setCloseable(false);
|
26
|
}
|
27
|
|
28
|
}
|