Massive refactoring of the methodology in former class UiUtils
authorn.hoffmann <n.hoffmann@localhost>
Tue, 20 Jan 2009 19:24:29 +0000 (19:24 +0000)
committern.hoffmann <n.hoffmann@localhost>
Tue, 20 Jan 2009 19:24:29 +0000 (19:24 +0000)
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/editor/name/AcceptedNameComposite.java

index 9eecdde69ee9c71d0cd59215dc1f4b0b1dce5c4b..58479127c42b7a4fb1bc637506105a95279c4ecc 100644 (file)
@@ -9,7 +9,6 @@
 package eu.etaxonomy.taxeditor.editor.name;\r
 \r
 import org.apache.log4j.Logger;\r
-import org.eclipse.jface.action.Action;\r
 import org.eclipse.swt.graphics.Font;\r
 import org.eclipse.swt.widgets.Composite;\r
 import org.eclipse.ui.forms.IManagedForm;\r
@@ -46,13 +45,14 @@ public class AcceptedNameComposite extends NameComposite {
        private void createMenu() {\r
                ContextMenu contextMenu = createContextMenu();\r
 \r
+               contextMenu.addAction(new ChangeTaxonToSynonymAction(getTaxon()));\r
+               contextMenu.addAction(new MoveTaxonDialogAction(getTaxon()));\r
+               \r
                // TODO Make action "Create autonym and subspecies"\r
-\r
-               Action changeTaxonAction = new ChangeTaxonToSynonymAction(getTaxon());\r
-               contextMenu.addAction(changeTaxonAction);\r
-\r
-               Action moveTaxonAction = new MoveTaxonDialogAction(getTaxon());\r
-               contextMenu.addAction(moveTaxonAction);\r
+//             contextMenu.addSeparator();\r
+//             \r
+//             contextMenu.addAction(new CreateAutonym(getTaxon()));\r
+//             contextMenu.addAction(new CreateSubspecies(getTaxon()));\r
        }\r
 \r
        @Override\r