// update visibility right now so that the menu
// will show/hide properly
if (!((IExtendedEditorAction) action).isVisible() && ad.getContributionItem() != null)
ad.getContributionItem().setVisible(false);
if (svc != null && action.getActionDefinitionId() != null) {
svc.registerAction(action);
}
}
}
catch (Exception e) {
Logger.logException("setting active editor on actions", e); //$NON-NLS-1$