Revision a834bc59
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java | ||
---|---|---|
12 | 12 |
import org.eclipse.ui.IFolderLayout; |
13 | 13 |
import org.eclipse.ui.IPageLayout; |
14 | 14 |
|
15 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
|
16 |
|
|
15 | 17 |
/** |
16 | 18 |
* @author a.oppermann |
17 | 19 |
* @created Nov 18, 2014 |
... | ... | |
33 | 35 |
|
34 | 36 |
navigationFolder.addView(NAVIGATOR); |
35 | 37 |
navigationFolder.addPlaceholder(SEARCH_RESULTS); |
38 |
navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR); |
|
36 | 39 |
|
37 | 40 |
IFolderLayout folder = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.6f, layout.getEditorArea()); |
38 | 41 |
folder.addView(FACTUAL_DATA_VIEW); |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/DerivatePerspective.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.perspective; |
10 | 10 |
|
11 |
import org.eclipse.ui.IFolderLayout; |
|
11 | 12 |
import org.eclipse.ui.IPageLayout; |
12 | 13 |
|
14 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
|
15 |
import eu.etaxonomy.taxeditor.navigation.search.SearchBar; |
|
16 |
|
|
13 | 17 |
/** |
14 | 18 |
* @author pplitzner |
15 | 19 |
* @date 10.12.2013 |
... | ... | |
19 | 23 |
|
20 | 24 |
@Override |
21 | 25 |
public void createInitialLayout(IPageLayout layout) { |
22 |
layout.addView(NAVIGATOR, IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
|
26 |
IFolderLayout navigationFolder = layout.createFolder(SearchBar.NAVIGATION_STACK_ID, IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
|
27 |
|
|
28 |
navigationFolder.addView(NAVIGATOR); |
|
29 |
navigationFolder.addPlaceholder(SEARCH_RESULTS); |
|
30 |
navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR); |
|
31 |
|
|
23 | 32 |
|
24 | 33 |
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.6f, layout.getEditorArea()); |
25 | 34 |
|
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/DescriptiveDataSetPerspective.java | ||
---|---|---|
12 | 12 |
import org.eclipse.ui.IFolderLayout; |
13 | 13 |
import org.eclipse.ui.IPageLayout; |
14 | 14 |
|
15 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
|
15 | 16 |
import eu.etaxonomy.taxeditor.navigation.search.SearchBar; |
16 | 17 |
|
17 | 18 |
/** |
... | ... | |
26 | 27 |
|
27 | 28 |
navigationFolder.addView(NAVIGATOR); |
28 | 29 |
navigationFolder.addPlaceholder(SEARCH_RESULTS); |
29 |
layout.addView("eu.etaxonomy.taxeditor.editor.descriptiveDataSet.DescriptiveDataSetNavigator", IPageLayout.TOP, 0.5f, SearchBar.NAVIGATION_STACK_ID);
|
|
30 |
layout.addView(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR, IPageLayout.TOP, 0.5f, SearchBar.NAVIGATION_STACK_ID);
|
|
30 | 31 |
|
31 |
layout.addPlaceholder("eu.etaxonomy.taxeditor.editor.view.descriptiveDataSet.DescriptiveDataSetEditor", IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
32 |
layout.addPlaceholder("eu.etaxonomy.taxeditor.editor.descriptiveDataSet.matrix.CharacterMatrix", IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
32 |
layout.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETEDITOR, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
33 |
layout.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_MATRIX_CHARACTERMATRIXPART, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
33 | 34 |
|
34 | 35 |
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.7f, layout.getEditorArea()); |
35 | 36 |
|
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Taxonomic.java | ||
---|---|---|
12 | 12 |
import org.eclipse.ui.IFolderLayout; |
13 | 13 |
import org.eclipse.ui.IPageLayout; |
14 | 14 |
|
15 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
|
15 | 16 |
import eu.etaxonomy.taxeditor.navigation.search.SearchBar; |
16 | 17 |
|
17 | 18 |
/** |
... | ... | |
27 | 28 |
|
28 | 29 |
navigationFolder.addView(NAVIGATOR); |
29 | 30 |
navigationFolder.addPlaceholder(SEARCH_RESULTS); |
31 |
navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR); |
|
30 | 32 |
|
31 | 33 |
layout.addPlaceholder(NAME_EDITOR, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea()); |
32 | 34 |
|
Also available in: Unified diff
Add descriptive data views/editors to perspectives