2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.editor
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.eclipse
.jface
.action
.MenuManager
;
20 public class MenuConstants
{
21 private static final Logger logger
= Logger
.getLogger(MenuConstants
.class);
26 * @deprecated this should all take place in plugin.xml
28 public static final MenuManager
EDITOR_TAXON_MENU(){
29 MenuManager taxonEditorMenu
= new MenuManager("Taxon");
31 // taxonEditorMenu.add(new CreateHeterotypicSynonymAction());
32 // taxonEditorMenu.add(new CreateSynonymInGroupAction());
33 // taxonEditorMenu.add(new Separator());
34 // taxonEditorMenu.add(new CreateMisappliedNameAction());
36 // MenuManager subMenu = new MenuManager("Create concept relation");
37 // for (TaxonRelationshipType type :
38 // CdmSessionDataRepository.getDefault().getConceptRelationshipTypes()) {
39 // subMenu.add(new CreateConceptRelationAction(type));
41 // taxonEditorMenu.add(subMenu);
42 // taxonEditorMenu.add(new Separator());
43 // taxonEditorMenu.add(new MoveTaxonDialogAction());
44 // taxonEditorMenu.add(new ChangeTaxonToSynonymAction());
45 // taxonEditorMenu.add(new Separator());
46 // // TODO is it correct that onlx taxa with rank species may have autonyms?
47 //// if(taxon.getName().getRank().equals(Rank.SPECIES())){
48 //// taxonEditorMenu.add(new CreateAutonymAction());
50 // taxonEditorMenu.add(new CreateTaxonomicallyIncludedTaxonAction());
52 return taxonEditorMenu
;