if (selectedElement instanceof TaxonDescription) {
FeatureTree featureTree = getFeatureTree((TaxonDescription) selectedElement);
- for (FeatureNode childNode : featureTree
- .getRootChildren()) {
- if (!(childNode.getFeature().getUuid()
- .equals(UsageTermCollection.uuidUseRecordFeature))
- && !(childNode.getFeature().getUuid()
- .equals(UsageTermCollection.uuidUseSummaryFeature))) {
- createMenuItem(menu, childNode.getFeature());
- }
+ for (FeatureNode childNode : featureTree.getRootChildren()) {
+ createMenuItem(menu, childNode.getFeature());
+
}
} else if (selectedElement instanceof FeatureNodeContainer) {
FeatureNode featureNode = ((FeatureNodeContainer) selectedElement)
MenuItem menuItem = new MenuItem(menu, -1);
final Feature deproxiedFeature = (Feature) HibernateProxyHelper
.deproxy(feature);
-
- menuItem.setText(deproxiedFeature.getLabel());
- menuItem.addSelectionListener(new SelectionListener() {
+ menuItem.setText(deproxiedFeature.getLabel());
+ menuItem.addSelectionListener(new SelectionListener() {
- public void widgetDefaultSelected(SelectionEvent e) {
- }
+ public void widgetDefaultSelected(SelectionEvent e) {
+ }
- public void widgetSelected(SelectionEvent ev) {
- Event event = new Event();
- event.data = deproxiedFeature;
- try {
- handlerService.executeCommand(
- CreateDescriptionElementOperation.ID, event);
- } catch (Exception e) {
- EditorUtil.error(getClass(), e);
- }
+ public void widgetSelected(SelectionEvent ev) {
+ Event event = new Event();
+ event.data = deproxiedFeature;
+ try {
+ handlerService.executeCommand(
+ CreateDescriptionElementOperation.ID, event);
+ } catch (Exception e) {
+ EditorUtil.error(getClass(), e);
}
- });
-
+ }
+ });
+
}
/**