Bug 47838 Make refactoring menu selection sensitive in editor [refactoring]
M5 Currently all refactoring actions are enabled in the editor's context menu. Make them selection dependent. Check if code resolve might be enough (no need to create an AST).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
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); 
		fIntroduceParameterAction= new IntroduceParameterAction(editor);
		fIntroduceParameterAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.INTRODUCE_PARAMETER);
		initAction(fIntroduceParameterAction, provider, selection);
		editor.setAction("IntroduceParameter", fIntroduceParameterAction); 
		fIntroduceFactoryAction= new IntroduceFactoryAction(editor);
		fIntroduceFactoryAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.INTRODUCE_FACTORY);
		initAction(fIntroduceFactoryAction, provider, selection);
		editor.setAction("IntroduceFactory", fIntroduceFactoryAction); 
		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);