added checklist perspective to taxonomic editor
authorAlexander Oppermann <a.oppermann@bgbm.org>
Tue, 18 Nov 2014 14:22:36 +0000 (14:22 +0000)
committerAlexander Oppermann <a.oppermann@bgbm.org>
Tue, 18 Nov 2014 14:22:36 +0000 (14:22 +0000)
.gitattributes
eu.etaxonomy.taxeditor.application/icons/check.png [new file with mode: 0644]
eu.etaxonomy.taxeditor.application/plugin.xml
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java [new file with mode: 0644]

index a3206c38d166eaa755b9a6e7d6baa79989009a9c..e638ffa0eb9da4b6e9ed39fb9e18ff38f3af3238 100644 (file)
@@ -13,6 +13,7 @@ eu.etaxonomy.taxeditor.application/icons/256color_16x16.gif -text
 eu.etaxonomy.taxeditor.application/icons/256color_32x32.gif -text
 eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif -text
 eu.etaxonomy.taxeditor.application/icons/256color_48x48.ico -text
+eu.etaxonomy.taxeditor.application/icons/check.png -text
 eu.etaxonomy.taxeditor.application/icons/edit_16x16.gif -text
 eu.etaxonomy.taxeditor.application/icons/specimen_derivate-16x16-32.png -text
 eu.etaxonomy.taxeditor.application/plugin.xml -text
@@ -31,6 +32,7 @@ eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/SaveAllH
 eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/SaveHandler.java -text
 eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/TaxonomicEditorPlugin.java -text
 eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/BulkEditing.java -text
+eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java -text
 eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Default.java -text
 eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/DerivatePerspective.java -text
 eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PolytomousKey.java -text
diff --git a/eu.etaxonomy.taxeditor.application/icons/check.png b/eu.etaxonomy.taxeditor.application/icons/check.png
new file mode 100644 (file)
index 0000000..d776b66
Binary files /dev/null and b/eu.etaxonomy.taxeditor.application/icons/check.png differ
index 1e27e9f4731338fb7e5778ef1bc9b501eb254c58..b74e209ce9d93b65fa3e04ed7461db32d7388015 100644 (file)
             id="eu.etaxonomy.taxeditor.application.perspective.derivates"\r
             name="%perspective.name.2">\r
       </perspective>\r
+      <perspective\r
+            class="eu.etaxonomy.taxeditor.perspective.ChecklistPerspective"\r
+            icon="icons/check.png"\r
+            id="eu.etaxonomy.taxeditor.perspective.checklistperspective"\r
+            name="Checklist">\r
+      </perspective>\r
      \r
    </extension>\r
    <!--extension\r
diff --git a/eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java b/eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java
new file mode 100644 (file)
index 0000000..46c9900
--- /dev/null
@@ -0,0 +1,53 @@
+// $Id$
+/**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy 
+ * http://www.e-taxonomy.eu
+ * 
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
+
+package eu.etaxonomy.taxeditor.perspective;
+
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.IPageLayout;
+
+import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
+import eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart;
+import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
+import eu.etaxonomy.taxeditor.navigation.search.SearchResultView;
+import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart;
+import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
+
+/**
+ * @author a.oppermann
+ * @created Nov 18, 2014
+ * @version 1.0
+ */
+public class ChecklistPerspective extends Default {
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui
+        * .IPageLayout)
+        */
+       @Override
+       public void createInitialLayout(IPageLayout layout) {
+               IFolderLayout navigationFolder = layout.createFolder("navigation",
+                               IPageLayout.LEFT, 0.25f, layout.getEditorArea());
+
+               navigationFolder.addView(TaxonNavigator.ID);
+               navigationFolder.addPlaceholder(SearchResultView.ID + ":*");
+
+               layout.addView(CdmDataSourceViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
+               IFolderLayout folder = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
+               folder.addView(DescriptiveViewPart.ID);
+               folder.addView(MediaViewPart.ID);
+               folder.addView(DetailsViewPart.ID);
+
+               createAdditionalFolder(layout, layout.getEditorArea());
+       }
+}