public RefactorActionGroup(CompilationUnitEditor editor, String groupName) { fSite= editor.getEditorSite(); fGroupName= groupName; ISelectionProvider provider= editor.getSelectionProvider(); ISelection selection= provider.getSelection();  fRenameAction= new RenameAction(editor); fRenameAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.RENAME_ELEMENT); fRenameAction.update(selection); editor.setAction("RenameElement", fRenameAction);  fSelfEncapsulateField= new SelfEncapsulateFieldAction(editor); fSelfEncapsulateField.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELF_ENCAPSULATE_FIELD); fSelfEncapsulateField.update(selection); editor.setAction("SelfEncapsulateField", fSelfEncapsulateField);  fModifyParametersAction= new ModifyParametersAction(editor); fModifyParametersAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MODIFY_METHOD_PARAMETERS); fModifyParametersAction.update(selection); editor.setAction("ModifyParameters", fModifyParametersAction);  fPullUpAction= new PullUpAction(editor); fPullUpAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PULL_UP); fPullUpAction.update(selection); editor.setAction("PullUp", fPullUpAction);  fPushDownAction= new PushDownAction(editor); fPushDownAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PUSH_DOWN); fPushDownAction.update(selection); editor.setAction("PushDown", fPushDownAction);  fMoveAction= new MoveAction(editor); fMoveAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MOVE_ELEMENT); fMoveAction.update(selection); editor.setAction("MoveElement", fMoveAction);  fExtractTempAction= new ExtractTempAction(editor); fExtractTempAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_LOCAL_VARIABLE); initAction(fExtractTempAction, provider, selection); editor.setAction("ExtractLocalVariable", fExtractTempAction);  fExtractConstantAction= new ExtractConstantAction(editor); fExtractConstantAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_CONSTANT); initAction(fExtractConstantAction, provider, selection); editor.setAction("ExtractConstant", fExtractConstantAction);  fInlineAction= new InlineAction(editor); fInlineAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.INLINE); fInlineAction.update(selection); editor.setAction("Inline", fInlineAction);  fExtractMethodAction= new ExtractMethodAction(editor); fExtractMethodAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_METHOD); initAction(fExtractMethodAction, provider, selection); editor.setAction("ExtractMethod", fExtractMethodAction);  fConvertLocalToFieldAction= new ConvertLocalToFieldAction(editor); fConvertLocalToFieldAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PROMOTE_LOCAL_VARIABLE); initAction(fConvertLocalToFieldAction, provider, selection); editor.setAction("PromoteTemp", fConvertLocalToFieldAction);  fConvertAnonymousToNestedAction= new ConvertAnonymousToNestedAction(editor); fConvertAnonymousToNestedAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_ANONYMOUS_TO_NESTED); initAction(fConvertAnonymousToNestedAction, provider, selection); editor.setAction("ConvertAnonymousToNested", fConvertAnonymousToNestedAction);  fExtractInterfaceAction= new ExtractInterfaceAction(editor); fExtractInterfaceAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_INTERFACE); fExtractInterfaceAction.update(selection); editor.setAction("ExtractInterface", fExtractInterfaceAction);  fConvertNestedToTopAction= new ConvertNestedToTopAction(editor); fConvertNestedToTopAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MOVE_INNER_TO_TOP); fConvertNestedToTopAction.update(selection); editor.setAction("MoveInnerToTop", fConvertNestedToTopAction);  fUseSupertypeAction= new UseSupertypeAction(editor); fUseSupertypeAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.USE_SUPERTYPE); fUseSupertypeAction.update(selection); editor.setAction("UseSupertype", fUseSupertypeAction);
public RefactorActionGroup(IViewPart part) { this(part.getSite());
	public RefactorActionGroup(CompilationUnitEditor editor, String groupName) {		fSite= editor.getEditorSite();		fGroupName= groupName;		ISelectionProvider provider= editor.getSelectionProvider();		ISelection selection= provider.getSelection();				fRenameAction= new RenameAction(editor);		fRenameAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.RENAME_ELEMENT);		fRenameAction.update(selection);		editor.setAction("RenameElement", fRenameAction); //$NON-NLS-1$				fSelfEncapsulateField= new SelfEncapsulateFieldAction(editor);		fSelfEncapsulateField.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELF_ENCAPSULATE_FIELD);		fSelfEncapsulateField.update(selection);		editor.setAction("SelfEncapsulateField", fSelfEncapsulateField); //$NON-NLS-1$				fModifyParametersAction= new ModifyParametersAction(editor);		fModifyParametersAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MODIFY_METHOD_PARAMETERS);		fModifyParametersAction.update(selection);		editor.setAction("ModifyParameters", fModifyParametersAction); //$NON-NLS-1$		fPullUpAction= new PullUpAction(editor);		fPullUpAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PULL_UP);		fPullUpAction.update(selection);		editor.setAction("PullUp", fPullUpAction); //$NON-NLS-1$		fPushDownAction= new PushDownAction(editor);		fPushDownAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PUSH_DOWN);		fPushDownAction.update(selection);		editor.setAction("PushDown", fPushDownAction); //$NON-NLS-1$				fMoveAction= new MoveAction(editor);		fMoveAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MOVE_ELEMENT);		fMoveAction.update(selection);		editor.setAction("MoveElement", fMoveAction); //$NON-NLS-1$						fExtractTempAction= new ExtractTempAction(editor);		fExtractTempAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_LOCAL_VARIABLE);		initAction(fExtractTempAction, provider, selection);		editor.setAction("ExtractLocalVariable", fExtractTempAction); //$NON-NLS-1$		fExtractConstantAction= new ExtractConstantAction(editor);		fExtractConstantAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_CONSTANT);		initAction(fExtractConstantAction, provider, selection);		editor.setAction("ExtractConstant", fExtractConstantAction); //$NON-NLS-1$		fInlineAction= new InlineAction(editor);		fInlineAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.INLINE);		fInlineAction.update(selection);		editor.setAction("Inline", fInlineAction); //$NON-NLS-1$				fExtractMethodAction= new ExtractMethodAction(editor);		fExtractMethodAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_METHOD);		initAction(fExtractMethodAction, provider, selection);		editor.setAction("ExtractMethod", fExtractMethodAction); //$NON-NLS-1$		fConvertLocalToFieldAction= new ConvertLocalToFieldAction(editor);		fConvertLocalToFieldAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PROMOTE_LOCAL_VARIABLE);		initAction(fConvertLocalToFieldAction, provider, selection);		editor.setAction("PromoteTemp", fConvertLocalToFieldAction); //$NON-NLS-1$		fConvertAnonymousToNestedAction= new ConvertAnonymousToNestedAction(editor);		fConvertAnonymousToNestedAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_ANONYMOUS_TO_NESTED);		initAction(fConvertAnonymousToNestedAction, provider, selection);		editor.setAction("ConvertAnonymousToNested", fConvertAnonymousToNestedAction); //$NON-NLS-1$		fExtractInterfaceAction= new ExtractInterfaceAction(editor);		fExtractInterfaceAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_INTERFACE);		fExtractInterfaceAction.update(selection);		editor.setAction("ExtractInterface", fExtractInterfaceAction); //$NON-NLS-1$		fConvertNestedToTopAction= new ConvertNestedToTopAction(editor);		fConvertNestedToTopAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MOVE_INNER_TO_TOP);		fConvertNestedToTopAction.update(selection);		editor.setAction("MoveInnerToTop", fConvertNestedToTopAction); //$NON-NLS-1$				fUseSupertypeAction= new UseSupertypeAction(editor);		fUseSupertypeAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.USE_SUPERTYPE);		fUseSupertypeAction.update(selection);		editor.setAction("UseSupertype", fUseSupertypeAction); //$NON-NLS-1$	}