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
|
|
10
|
package eu.etaxonomy.taxeditor.perspective;
|
11
|
|
12
|
import org.eclipse.ui.IFolderLayout;
|
13
|
import org.eclipse.ui.IPageLayout;
|
14
|
|
15
|
import eu.etaxonomy.taxeditor.editor.AppModelId;
|
16
|
import eu.etaxonomy.taxeditor.navigation.search.SearchBar;
|
17
|
|
18
|
/**
|
19
|
* @author n.hoffmann
|
20
|
* @created Jan 17, 2011
|
21
|
* @version 1.0
|
22
|
*/
|
23
|
public class Taxonomic extends Default {
|
24
|
|
25
|
@Override
|
26
|
public void createInitialLayout(IPageLayout layout) {
|
27
|
IFolderLayout navigationFolder = layout.createFolder(SearchBar.NAVIGATION_STACK_ID, IPageLayout.LEFT, 0.3f, layout.getEditorArea());
|
28
|
|
29
|
navigationFolder.addView(NAVIGATOR);
|
30
|
navigationFolder.addPlaceholder(SEARCH_RESULTS);
|
31
|
navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR);
|
32
|
|
33
|
layout.addPlaceholder(NAME_EDITOR, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
34
|
|
35
|
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
|
36
|
IFolderLayout supplementalFolder = layout.createFolder(SUPPLEMENTAL_VIEW+"stack", IPageLayout.BOTTOM, 0.6f, DETAILS_VIEW);
|
37
|
supplementalFolder.addView(SUPPLEMENTAL_VIEW);
|
38
|
supplementalFolder.addPlaceholder(CONCEPT_VIEW);
|
39
|
supplementalFolder.addPlaceholder(REFERENCING_VIEW);
|
40
|
|
41
|
layout.addView(FACTUAL_DATA_VIEW, IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
|
42
|
layout.addView(MEDIA_VIEW, IPageLayout.RIGHT, 0.5f, FACTUAL_DATA_VIEW);
|
43
|
|
44
|
createAdditionalFolder(layout, layout.getEditorArea());
|
45
|
}
|
46
|
}
|