if (action == null) {
action = createAction(actionId);
if (action == null)
return null;
if (action instanceof MergeViewerAction) {
MergeViewerAction mva = (MergeViewerAction) action;
if (mva.isContentDependent())
addTextListener(this);
if (mva.isSelectionDependent())
addSelectionChangedListener(this);
Utilities.initAction(action, fResourceBundle,
"action." + actionId + "."); //$NON-NLS-1$ //$NON-NLS-2$
}
addAction(actionId, action);
}
if (action instanceof MergeViewerAction) {
MergeViewerAction mva = (MergeViewerAction) action;
if (mva.isEditableDependent() && !isEditable())
return null;
}
return action;
}