public AddJavaDocStubAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(checkEnabledEditor());
public AddJavaDocStubAction(IWorkbenchSite site) { super(site); setText(ActionMessages.getString("AddJavaDocStubAction.label")); setDescription(ActionMessages.getString("AddJavaDocStubAction.description")); setToolTipText(ActionMessages.getString("AddJavaDocStubAction.tooltip")); WorkbenchHelp.setHelp(this, IJavaHelpContextIds.ADD_JAVADOC_STUB_ACTION);
	public AddJavaDocStubAction(CompilationUnitEditor editor) {		this(editor.getEditorSite());		fEditor= editor;		setEnabled(checkEnabledEditor());	}