Project: JDT
Bug 303617 [extract constant] Refactoring not available on pop-up if selected string is an annotation
Reported: 2010-02-23 08:53:23 | Status: resolved fixed

Build Identifier: 3.5.1 If I select a string that is the value for an annotation, "Extract constant..." is available on the Refactor menu, but not on the Shift-Alt-T quick menu. This is inconsistent, as it is on that menu for string constants outside of annotations. Reproducible: Always Steps to Reproduce: 1. Select a string constant within @Annotation("string constant") 2. Press Shift-Alt-T 3. Menu item is not available

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaTextSelection.java