Project: JDT
Bug 227482 [nls tooling] Externalize Strings misses inner classes
Reported: 2008-04-17 03:04:31 | Status: verified fixed

Build ID: I20080330-1350 Steps To Reproduce: 1. Create a class with a inner class in a method like this: public void test() { text.addSelectionListener(new SelectionAdapter() { @Override public void widgetDefaultSelected(final SelectionEvent e) { String world = "Hello world!"; } }); } 2. Select the project and choose Source > Externalize Strings 3. The string is not found More information: It works in Eclipse 3.3.2. It seems that it has something to do with: object.methodcall({innerclass}); This will work: object = new interface(){innerclass};

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/nls/NLSScannerTester.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSScanner.java