public SelfEncapsulateFieldAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor));
public SelfEncapsulateFieldAction(IWorkbenchSite site) { super(site); setText(ActionMessages.SelfEncapsulateFieldAction_label); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.SELF_ENCAPSULATE_ACTION);
	public SelfEncapsulateFieldAction(CompilationUnitEditor editor) {		this(editor.getEditorSite());		fEditor= editor;		setEnabled(SelectionConverter.canOperateOn(fEditor));	}