Merge branch 'release/5.19.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.application / src / main / java / eu / etaxonomy / taxeditor / perspective / ChecklistPerspective.java
1 /**
2 * Copyright (C) 2007 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.IFolderLayout;
12 import org.eclipse.ui.IPageLayout;
13
14 import eu.etaxonomy.taxeditor.editor.AppModelId;
15
16 /**
17 * @author a.oppermann
18 * @created Nov 18, 2014
19 */
20 public class ChecklistPerspective extends Default {
21
22 @Override
23 public void createInitialLayout(IPageLayout layout) {
24 IFolderLayout navigationFolder = layout.createFolder("navigation",
25 IPageLayout.LEFT, 0.25f, layout.getEditorArea());
26
27 navigationFolder.addView(NAVIGATOR);
28 navigationFolder.addPlaceholder(SEARCH_RESULTS);
29 navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR);
30
31 layout.addPlaceholder(NAME_EDITOR, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
32
33 layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
34 IFolderLayout supplementalFolder = layout.createFolder(SUPPLEMENTAL_VIEW+"stack", IPageLayout.BOTTOM, 0.6f, DETAILS_VIEW);
35 supplementalFolder.addView(SUPPLEMENTAL_VIEW);
36
37 supplementalFolder.addPlaceholder(REFERENCING_VIEW);
38
39 layout.addView(FACTUAL_DATA_VIEW, IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
40 layout.addPlaceholder(MEDIA_VIEW, IPageLayout.RIGHT, 0.5f, FACTUAL_DATA_VIEW);
41
42 createAdditionalFolder(layout, layout.getEditorArea());
43 }
44 }