Revision 4483d1dd
Added by Alexander Oppermann over 9 years ago
.gitattributes | ||
---|---|---|
13 | 13 |
eu.etaxonomy.taxeditor.application/icons/256color_32x32.gif -text |
14 | 14 |
eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif -text |
15 | 15 |
eu.etaxonomy.taxeditor.application/icons/256color_48x48.ico -text |
16 |
eu.etaxonomy.taxeditor.application/icons/check.png -text |
|
16 | 17 |
eu.etaxonomy.taxeditor.application/icons/edit_16x16.gif -text |
17 | 18 |
eu.etaxonomy.taxeditor.application/icons/specimen_derivate-16x16-32.png -text |
18 | 19 |
eu.etaxonomy.taxeditor.application/plugin.xml -text |
... | ... | |
31 | 32 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/SaveHandler.java -text |
32 | 33 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/TaxonomicEditorPlugin.java -text |
33 | 34 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/BulkEditing.java -text |
35 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java -text |
|
34 | 36 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Default.java -text |
35 | 37 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/DerivatePerspective.java -text |
36 | 38 |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PolytomousKey.java -text |
eu.etaxonomy.taxeditor.application/plugin.xml | ||
---|---|---|
42 | 42 |
id="eu.etaxonomy.taxeditor.application.perspective.derivates" |
43 | 43 |
name="%perspective.name.2"> |
44 | 44 |
</perspective> |
45 |
<perspective |
|
46 |
class="eu.etaxonomy.taxeditor.perspective.ChecklistPerspective" |
|
47 |
icon="icons/check.png" |
|
48 |
id="eu.etaxonomy.taxeditor.perspective.checklistperspective" |
|
49 |
name="Checklist"> |
|
50 |
</perspective> |
|
45 | 51 |
|
46 | 52 |
</extension> |
47 | 53 |
<!--extension |
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java | ||
---|---|---|
1 |
// $Id$ |
|
2 |
/** |
|
3 |
* Copyright (C) 2007 EDIT |
|
4 |
* European Distributed Institute of Taxonomy |
|
5 |
* http://www.e-taxonomy.eu |
|
6 |
* |
|
7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
9 |
*/ |
|
10 |
|
|
11 |
package eu.etaxonomy.taxeditor.perspective; |
|
12 |
|
|
13 |
import org.eclipse.ui.IFolderLayout; |
|
14 |
import org.eclipse.ui.IPageLayout; |
|
15 |
|
|
16 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart; |
|
17 |
import eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart; |
|
18 |
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator; |
|
19 |
import eu.etaxonomy.taxeditor.navigation.search.SearchResultView; |
|
20 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
|
21 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
|
22 |
|
|
23 |
/** |
|
24 |
* @author a.oppermann |
|
25 |
* @created Nov 18, 2014 |
|
26 |
* @version 1.0 |
|
27 |
*/ |
|
28 |
public class ChecklistPerspective extends Default { |
|
29 |
|
|
30 |
/* |
|
31 |
* (non-Javadoc) |
|
32 |
* |
|
33 |
* @see |
|
34 |
* org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui |
|
35 |
* .IPageLayout) |
|
36 |
*/ |
|
37 |
@Override |
|
38 |
public void createInitialLayout(IPageLayout layout) { |
|
39 |
IFolderLayout navigationFolder = layout.createFolder("navigation", |
|
40 |
IPageLayout.LEFT, 0.25f, layout.getEditorArea()); |
|
41 |
|
|
42 |
navigationFolder.addView(TaxonNavigator.ID); |
|
43 |
navigationFolder.addPlaceholder(SearchResultView.ID + ":*"); |
|
44 |
|
|
45 |
layout.addView(CdmDataSourceViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID); |
|
46 |
IFolderLayout folder = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.6f, layout.getEditorArea()); |
|
47 |
folder.addView(DescriptiveViewPart.ID); |
|
48 |
folder.addView(MediaViewPart.ID); |
|
49 |
folder.addView(DetailsViewPart.ID); |
|
50 |
|
|
51 |
createAdditionalFolder(layout, layout.getEditorArea()); |
|
52 |
} |
|
53 |
} |
Also available in: Unified diff
added checklist perspective to taxonomic editor