Project

General

Profile

Revision 459a7535

ID459a753553499818f0688e89ca21ec0cbcfd6f7a
Parent 186b9558
Child a1764026

Added by Patrick Plitzner almost 3 years ago

ref #6595 Do not hide subMenuItems

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/ChangeSynonymToAcceptedTaxonHandlerE4.java
142 142
                NameEditorMenuPropertyTester.isNotHomotypicSynonymOfAcceptedTaxon(selectedElement)
143 143
                && !NameEditorMenuPropertyTester.isAccepted(selectedElement)
144 144
                && !NameEditorMenuPropertyTester.isMisapplication(selectedElement);
145
        menuItem.setVisible(canExecute);
145
//        menuItem.setVisible(canExecute);
146 146
        return canExecute;
147 147
    }
148 148

  
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/ChangeToMisapplicationHandlerE4.java
75 75
        canExecute =
76 76
                !NameEditorMenuPropertyTester.isAccepted(selectedElement)
77 77
                && !NameEditorMenuPropertyTester.isMisapplication(selectedElement);
78
        menuItem.setVisible(canExecute);
79 78
        return canExecute;
80 79
    }
81 80

  
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/ChangeToSynonymHandlerE4.java
59 59
        canExecute =
60 60
                !NameEditorMenuPropertyTester.isAccepted(selectedElement)
61 61
                && !NameEditorMenuPropertyTester.isSynonym(selectedElement);
62
        menuItem.setVisible(canExecute);
63 62
        return canExecute;
64 63
    }
65 64

  
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/CreateHeterotypicSynonymHandlerE4.java
54 54
            MHandledMenuItem menuItem){
55 55
        Object selectedElement = selection.getFirstElement();
56 56
        boolean canExecute = NameEditorMenuPropertyTester.isAccepted(selectedElement);
57
        menuItem.setVisible(canExecute);
58 57
        return canExecute;
59 58
    }
60 59
}
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/CreateHomotypicSynonymHandlerE4.java
57 57
            MHandledMenuItem menuItem){
58 58
        Object selectedElement = selection.getFirstElement();
59 59
        boolean canExecute = NameEditorMenuPropertyTester.isAccepted(selectedElement);
60
        menuItem.setVisible(canExecute);
61 60
        return canExecute;
62 61
    }
63 62
}
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/CreateMisapplicationHandlerE4.java
61 61
        Object selectedElement = selection.getFirstElement();
62 62
        canExecute = NameEditorMenuPropertyTester.isAccepted(selectedElement)
63 63
                && NameEditorMenuPropertyTester.isMisapplication(selectedElement);
64
        menuItem.setVisible(canExecute);
65 64
        return canExecute;
66 65
    }
67 66
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)