Project: JDT
Bug 53860 Extract Local does not work on static parameter in call to constructor [refactoring]
Reported: 2004-03-05 10:06:35 | Status: verified fixed

I20040304 Extract Local on "SWT.NORMAL" in the following statement does not work: fRanges.add(new StyleRange(j, word.length(), fLocalColor, null, SWT.NORMAL)); Error Message: Cannot extract this name - try selecting the whole instance creation expression.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractTemp/canExtract/A_test81_in.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractTemp/canExtract/A_test81_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractTempTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java