fix #6570: add comparator to treemap to provide the correct order in rank drop down
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / command / DynamicNewObjectMenu.java
index ecc6c898c0c89fbc3a5299fa57fc5d48296cd99d..2d49f3be1e4dd08bc251a48ee74741563bb52cc5 100644 (file)
@@ -41,7 +41,7 @@ public class DynamicNewObjectMenu extends CompoundContributionItem {
                        .getLogger(DynamicNewObjectMenu.class);
 
        private final IHandlerService handlerService = (IHandlerService) BulkEditorUtil.getService(IHandlerService.class);
-       private Map<Object, String> classLabelPairs;
+       private Map<? extends Object, String> classLabelPairs;
 
        /** {@inheritDoc} */
        @Override
@@ -88,7 +88,7 @@ public class DynamicNewObjectMenu extends CompoundContributionItem {
         * Get class label pairs from Annotated Line Editor's entity creator.
         * @return
         */
-       private Map<Object, String> getClassLabelPairs() {
+       private Map<? extends Object, String> getClassLabelPairs() {
                IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
                if (editor != null){
                        IEditorInput input = editor.getEditorInput();