1
|
/**
|
2
|
* Copyright (C) 2013 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.perspective;
|
10
|
|
11
|
import org.eclipse.ui.IPageLayout;
|
12
|
import org.eclipse.ui.IPlaceholderFolderLayout;
|
13
|
|
14
|
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView;
|
15
|
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
|
16
|
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor;
|
17
|
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
|
18
|
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
|
19
|
|
20
|
/**
|
21
|
* @author pplitzner
|
22
|
* @date 10.12.2013
|
23
|
*
|
24
|
*/
|
25
|
public class FeatureTreePerspective extends Default {
|
26
|
|
27
|
@Override
|
28
|
public void createInitialLayout(IPageLayout layout) {
|
29
|
|
30
|
|
31
|
layout.addView(DetailsViewPart.ID, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
|
32
|
|
33
|
IPlaceholderFolderLayout left = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.LEFT, 0.25f, layout.getEditorArea());
|
34
|
IPlaceholderFolderLayout right = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.RIGHT, 0.5f, layout.getEditorArea());
|
35
|
IPlaceholderFolderLayout top = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.TOP, 0.5f, layout.getEditorArea());
|
36
|
IPlaceholderFolderLayout bottom = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
|
37
|
|
38
|
left.addPlaceholder(DerivateView.ID);
|
39
|
top.addPlaceholder(FeatureTreeEditor.class.getCanonicalName());
|
40
|
bottom.addPlaceholder(DescriptiveViewPart.ID);
|
41
|
}
|
42
|
|
43
|
}
|