From b79b3b010aadc15bdd9ce8499a3026928c3009dc Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Thu, 29 Jun 2017 15:19:36 +0200
Subject: [PATCH] Remove menu item when no viewer is available
---
.../eu/etaxonomy/taxeditor/view/CdmViewerContextMenu.java | 5 -----
1 file changed, 5 deletions(-)
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenu.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenu.java
index 0f2cf73f4..bd1cdb26a 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenu.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenu.java
@@ -75,11 +75,6 @@ public class CdmViewerContextMenu extends CompoundContributionItem {
menuItem.addSelectionListener(new CommandInvoker(command, firstElement)) ;
}
}
- else{
- MenuItem addItem = new MenuItem(menu, SWT.CASCADE);
- addItem.setText("No viewers available");
- addItem.setEnabled(false);
- }
}
}
}
--
2.34.1