Moving editor sources back into trunk
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / MenuConstants.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.taxeditor.editor;
11
12 import org.apache.log4j.Logger;
13 import org.eclipse.jface.action.MenuManager;
14
15 /**
16 * @author n.hoffmann
17 * @created 03.02.2009
18 * @version 1.0
19 */
20 public class MenuConstants {
21 private static final Logger logger = Logger.getLogger(MenuConstants.class);
22
23 /**
24 *
25 * @return
26 * @deprecated this should all take place in plugin.xml
27 */
28 public static final MenuManager EDITOR_TAXON_MENU(){
29 MenuManager taxonEditorMenu = new MenuManager("Taxon");
30 //
31 // taxonEditorMenu.add(new CreateHeterotypicSynonymAction());
32 // taxonEditorMenu.add(new CreateSynonymInGroupAction());
33 // taxonEditorMenu.add(new Separator());
34 // taxonEditorMenu.add(new CreateMisappliedNameAction());
35 //
36 // MenuManager subMenu = new MenuManager("Create concept relation");
37 // for (TaxonRelationshipType type :
38 // CdmSessionDataRepository.getDefault().getConceptRelationshipTypes()) {
39 // subMenu.add(new CreateConceptRelationAction(type));
40 // }
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());
49 //// }
50 // taxonEditorMenu.add(new CreateTaxonomicallyIncludedTaxonAction());
51 //
52 return taxonEditorMenu;
53 }
54
55 }