Bug 72912 Cannot extract static [refactoring]
When I have the string "Windows" selected in: public static final boolean IS_OS_WINDOWS = getOSMatches("Windows"); Right-click/Refactor does not let me extract "Windows" as a static. Version 3.1.M1.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaTextSelection.java
fPartialASTRequested= true;
		if (! (fElement instanceof ICompilationUnit))
			return null;
		
		fPartialAST= JavaPlugin.getDefault().getASTProvider().getAST(fElement, true, null);
		
		return fPartialAST;
	}
	
	public ASTNode[] resolveSelectedNodes() {
		if (fNodesRequested)
			return fSelectedNodes;
		fNodesRequested= true;
		CompilationUnit root= resolvePartialAstAtOffset();
		if (root == null)
			return null;
		Selection ds= Selection.createFromStartLength(getOffset(), getLength());
		SelectionAnalyzer analyzer= new SelectionAnalyzer(ds, false);
		root.accept(analyzer);
		fSelectedNodes= analyzer.getSelectedNodes();
		fCoveringNode= analyzer.getLastCoveringNode();
		return fSelectedNodes;
	}
	
	public ASTNode resolveCoveringNode() {
		if (fNodesRequested)
			return fCoveringNode;
		resolveSelectedNodes();
		return fCoveringNode;
	}