Community
Participate
Working Groups
I20040218 - class PerspectiveRegistry (org.eclipse.ui.workbench/Eclipse UI/org.eclipse.ui.internal.registry/PerspectiveRegistry) I have the project org.eclipse.ui.workbench loaded as source in my environment. Open the class PerspectiveRegistry in the editor. The constructor has the following format: public PerspectiveRegistry() { super(); IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); store.addPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { ... } private void mergePerspectives(PropertyChangeEvent event) { ... updatePreferenceList(store); } private void updatePreferenceList(IPreferenceStore store) { ... } }); } Double click to select the text 'updatePreferenceList' where it is called in method mergePerspectives. Hit F3. I expected to go to the definition of the method updatePreferenceList a couple of lines below. But instead I got the error message "Current text selection doesn't resolve to a Java element".
reproduced this. Set a breakpoint in ICompilationUnit.codeSelect and no result was returned.
Simple test case public class X { public void foo() { new Object() { void bar1() { bar2(); } void bar2() { } }; } }
Fixed and test added SelectionTest#test50() SelectionTest#test51() SelectionTest#test52()
Verified in 200405180816