Merge branch 'release/4.7.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.application / src / main / java / eu / etaxonomy / taxeditor / perspective / DerivatePerspective.java
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.progress.IProgressConstants;
13
14 import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
15 import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
16 import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart;
17 import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
18
19 /**
20 * @author pplitzner
21 * @date 10.12.2013
22 *
23 */
24 public class DerivatePerspective extends Default {
25
26 @Override
27 public void createInitialLayout(IPageLayout layout) {
28 layout.addView(TaxonNavigator.ID, IPageLayout.LEFT, 0.25f, layout.getEditorArea());
29
30 layout.addView(DetailsViewPart.ID, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
31
32 layout.addView(DescriptiveViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
33
34 folderAdditional = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
35
36 folderAdditional.addPlaceholder(CdmDataSourceViewPart.ID);
37 folderAdditional.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
38 }
39
40 }