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
private IJavaElement fElement;
	private IJavaElement[] fResolvedElements;
	
	private boolean fEnclosingElementRequested;
	private IJavaElement fEnclosingElement;
	
	private boolean fPartialASTRequested;
	private CompilationUnit fPartialAST;
	
	private boolean fNodesRequested;
	private ASTNode[] fSelectedNodes;
	private ASTNode fCoveringNode;
	
	private boolean fInMethodBodyRequested;
	private boolean fInMethodBody;
	
	private boolean fInInitializeRequested;
	private boolean fInInitializer;
	
	/**
	 * Creates a new text selection at the given offset and length.
	 */
	public JavaTextSelection(IJavaElement element, IDocument document, int offset, int length) {
		super(document, offset, length);
		fElement= element;