code: protected IAction getAction(ITextEditor editor, String actionID) {
  		return (editor == null ? null : editor.getAction(actionID));
  	}
docs: Returns the action registed with the given text editor.
  @return IAction or null if editor is null.