public AddDelegateMethodsAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor = editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(editor) != null);
public AddDelegateMethodsAction(IWorkbenchSite site) { super(site); setText(ActionMessages.getString("AddDelegateMethodsAction.label")); setDescription(ActionMessages.getString("AddDelegateMethodsAction.description")); setToolTipText(ActionMessages.getString("AddDelegateMethodsAction.tooltip"));  WorkbenchHelp.setHelp(this, IJavaHelpContextIds.ADD_DELEGATE_METHODS_ACTION);
	public AddDelegateMethodsAction(CompilationUnitEditor editor) {		this(editor.getEditorSite());		fEditor = editor;		setEnabled(SelectionConverter.getInputAsCompilationUnit(editor) != null);	}