String text = cmEntry.getText();
IContextMenuEntry[] children = cmEntry.getChildren();
if (children.length == 0) {
IFeature feature = cmEntry.getFeature();
if (feature instanceof ICustomFeature && feature.isAvailable(context)) {
IAction action = new CustomAction((ICustomFeature) feature, context, getBehavior());
if (textParentEntry != null) {
text = textParentEntry + " " + text; //$NON-NLS-1$
}
action.setText(text);
action.setDescription(cmEntry.getDescription());
ImageDescriptor image = Activator.getDefault().getImageDescriptor(cmEntry.getIconId());
action.setImageDescriptor(image);
appendContributionItem(manager, groupID, new ActionContributionItem(action));
}
} else {
if (cmEntry.isSubmenu()) {