Revision b0b8da6c
Added by Patrick Plitzner about 6 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.view.descriptive.DescriptiveViewPart; |
|
16 |
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator; |
|
17 |
import eu.etaxonomy.taxeditor.navigation.search.SearchResultView; |
|
18 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
|
19 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
|
20 |
|
|
21 | 15 |
/** |
22 | 16 |
* @author a.oppermann |
23 | 17 |
* @created Nov 18, 2014 |
... | ... | |
37 | 31 |
IFolderLayout navigationFolder = layout.createFolder("navigation", |
38 | 32 |
IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
39 | 33 |
|
40 |
navigationFolder.addView(TaxonNavigator.ID);
|
|
41 |
navigationFolder.addPlaceholder(SearchResultView.ID + ":*");
|
|
34 |
navigationFolder.addView(NAVIGATOR);
|
|
35 |
navigationFolder.addPlaceholder(SEARCH_RESULTS);
|
|
42 | 36 |
|
43 |
layout.addView(CdmDataSourceViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID); |
|
44 | 37 |
IFolderLayout folder = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.6f, layout.getEditorArea()); |
45 |
folder.addView(DescriptiveViewPart.ID);
|
|
46 |
folder.addView(DetailsViewPart.ID);
|
|
38 |
folder.addView(FACTUAL_DATA_VIEW);
|
|
39 |
folder.addView(DETAILS_VIEW);
|
|
47 | 40 |
// folder.addView(MediaViewPart.ID); |
48 | 41 |
|
49 | 42 |
// createAdditionalFolder(layout, layout.getEditorArea()); |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Default.java | ||
---|---|---|
7 | 7 |
import org.eclipse.ui.IPerspectiveFactory; |
8 | 8 |
import org.eclipse.ui.IPlaceholderFolderLayout; |
9 | 9 |
|
10 |
import eu.etaxonomy.taxeditor.store.AppModelId; |
|
11 |
|
|
10 | 12 |
/** |
11 | 13 |
* @author n.hoffmann |
12 | 14 |
* |
... | ... | |
15 | 17 |
|
16 | 18 |
protected IPlaceholderFolderLayout folderAdditional; |
17 | 19 |
|
20 |
protected static final String DETAILS_VIEW = AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_VIEW_E4_DETAILS_DETAILSPARTE4; |
|
21 |
protected static final String SUPPLEMENTAL_VIEW = AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_VIEW_E4_SUPPLEMENTALDATA_SUPPLEMENTALDATAPARTE4; |
|
22 |
protected static final String NAVIGATOR = eu.etaxonomy.taxeditor.navigation.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_NAVIGATION_NAVIGATOR; |
|
23 |
protected static final String NAME_EDITOR = eu.etaxonomy.taxeditor.editor.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_NAME_E4_TAXONNAMEEDITORE4; |
|
24 |
protected static final String FACTUAL_DATA_VIEW = eu.etaxonomy.taxeditor.editor.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DESCRIPTIVE_E4_FACTUALDATAPARTE4; |
|
25 |
protected static final String SEARCH_RESULTS = eu.etaxonomy.taxeditor.navigation.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_NAVIGATION_SEARCH_E4_SEARCHRESULTVIEWE4; |
|
26 |
|
|
27 |
|
|
18 | 28 |
public static final String ADDITIONAL = "additional"; |
19 | 29 |
|
20 | 30 |
/** |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/DerivatePerspective.java | ||
---|---|---|
9 | 9 |
package eu.etaxonomy.taxeditor.perspective; |
10 | 10 |
|
11 | 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 | 12 |
|
19 | 13 |
/** |
20 | 14 |
* @author pplitzner |
... | ... | |
25 | 19 |
|
26 | 20 |
@Override |
27 | 21 |
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()); |
|
22 |
layout.addView(NAVIGATOR, IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
|
31 | 23 |
|
32 |
layout.addView(DescriptiveViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
|
|
24 |
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
|
|
33 | 25 |
|
34 |
folderAdditional = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
|
|
26 |
layout.addView(FACTUAL_DATA_VIEW, IPageLayout.BOTTOM, 0.6f, NAVIGATOR);
|
|
35 | 27 |
|
36 |
folderAdditional.addPlaceholder(CdmDataSourceViewPart.ID); |
|
37 |
folderAdditional.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); |
|
38 | 28 |
} |
39 | 29 |
|
40 | 30 |
} |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PolytomousKey.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.perspective; |
5 | 5 |
|
6 | 6 |
import org.eclipse.ui.IPageLayout; |
7 | 7 |
|
8 |
import eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart; |
|
9 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
|
10 |
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart; |
|
8 |
import eu.etaxonomy.taxeditor.navigation.AppModelId; |
|
11 | 9 |
|
12 | 10 |
/** |
13 | 11 |
* @author n.hoffmann |
... | ... | |
20 | 18 |
*/ |
21 | 19 |
@Override |
22 | 20 |
public void createInitialLayout(IPageLayout layout) { |
23 |
layout.addView(PolytomousKeyViewPart.ID, IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
|
21 |
layout.addView(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_NAVIGATION_KEY_POLYTOMOUS_E4_POLYTOMOUSKEYVIEWPARTE4, IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
|
22 |
|
|
23 |
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.25f, layout.getEditorArea()); |
|
24 |
|
|
25 |
layout.addView(SUPPLEMENTAL_VIEW, IPageLayout.BOTTOM, 0.25f, DETAILS_VIEW); |
|
24 | 26 |
|
25 |
layout.addView(DetailsViewPart.ID, IPageLayout.RIGHT, 0.25f, layout.getEditorArea()); |
|
26 |
|
|
27 |
layout.addView(SupplementalDataViewPart.ID, IPageLayout.BOTTOM, 0.25f, DetailsViewPart.ID); |
|
28 |
|
|
29 | 27 |
createAdditionalFolder(layout, layout.getEditorArea()); |
30 | 28 |
} |
31 | 29 |
|
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.store.AppModelId; |
|
16 |
|
|
17 | 15 |
/** |
18 | 16 |
* @author n.hoffmann |
19 | 17 |
* @created Jan 17, 2011 |
... | ... | |
23 | 21 |
|
24 | 22 |
@Override |
25 | 23 |
public void createInitialLayout(IPageLayout layout) { |
26 |
String details = AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_VIEW_E4_DETAILS_DETAILSPARTE4; |
|
27 |
String supplemental = AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_VIEW_E4_SUPPLEMENTALDATA_SUPPLEMENTALDATAPARTE4; |
|
28 |
String navigator = eu.etaxonomy.taxeditor.navigation.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_NAVIGATION_NAVIGATOR; |
|
29 |
String nameEditor = eu.etaxonomy.taxeditor.editor.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_NAME_E4_TAXONNAMEEDITORE4; |
|
30 |
String factual = eu.etaxonomy.taxeditor.editor.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DESCRIPTIVE_E4_FACTUALDATAPARTE4; |
|
31 |
String searchResults = eu.etaxonomy.taxeditor.navigation.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_NAVIGATION_SEARCH_E4_SEARCHRESULTVIEWE4; |
|
32 |
|
|
33 |
|
|
34 | 24 |
IFolderLayout navigationFolder = layout.createFolder("navigation", IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
35 | 25 |
|
36 |
navigationFolder.addView(navigator);
|
|
37 |
navigationFolder.addPlaceholder(searchResults);
|
|
26 |
navigationFolder.addView(NAVIGATOR);
|
|
27 |
navigationFolder.addPlaceholder(SEARCH_RESULTS);
|
|
38 | 28 |
|
39 |
layout.addPlaceholder(nameEditor, IPageLayout.BOTTOM, 0.5f, layout.getEditorArea());
|
|
29 |
layout.addPlaceholder(NAME_EDITOR, IPageLayout.BOTTOM, 0.5f, layout.getEditorArea());
|
|
40 | 30 |
|
41 |
layout.addView(details, IPageLayout.RIGHT, 0.25f, layout.getEditorArea());
|
|
42 |
layout.addView(supplemental, IPageLayout.BOTTOM, 0.25f, details);
|
|
31 |
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.25f, layout.getEditorArea());
|
|
32 |
layout.addView(SUPPLEMENTAL_VIEW, IPageLayout.BOTTOM, 0.25f, DETAILS_VIEW);
|
|
43 | 33 |
|
44 |
layout.addView(factual, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
34 |
layout.addView(FACTUAL_DATA_VIEW, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
45 | 35 |
|
46 | 36 |
createAdditionalFolder(layout, layout.getEditorArea()); |
47 | 37 |
} |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Uses.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.perspective; |
5 | 5 |
|
6 | 6 |
import org.eclipse.ui.IPageLayout; |
7 |
import eu.etaxonomy.taxeditor.editor.view.uses.UsesViewPart; |
|
8 |
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator; |
|
9 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
|
7 |
|
|
8 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
|
10 | 9 |
|
11 | 10 |
/** |
12 | 11 |
* Uses Class |
13 |
* @author a.theys
|
|
12 |
* @author a.theys |
|
14 | 13 |
* @created mar 13, 2012 |
15 | 14 |
* @version 1.0 |
16 | 15 |
*/ |
... | ... | |
22 | 21 |
/** {@inheritDoc} */ |
23 | 22 |
@Override |
24 | 23 |
public void createInitialLayout(IPageLayout layout) { |
25 |
layout.addView(TaxonNavigator.ID, IPageLayout.LEFT, 0.25f, layout.getEditorArea());
|
|
26 |
layout.addView(DetailsViewPart.ID, IPageLayout.RIGHT, 0.25f, layout.getEditorArea());
|
|
27 |
layout.addView(UsesViewPart.ID, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
28 |
|
|
24 |
layout.addView(NAVIGATOR, IPageLayout.LEFT, 0.25f, layout.getEditorArea());
|
|
25 |
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.25f, layout.getEditorArea());
|
|
26 |
layout.addView(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_USES, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
|
27 |
|
|
29 | 28 |
createAdditionalFolder(layout, layout.getEditorArea()); |
30 | 29 |
} |
31 |
|
|
30 |
|
|
32 | 31 |
|
33 | 32 |
} |
34 | 33 |
|
Also available in: Unified diff
fix #6568 Migrate perspectives