Community
Participate
Working Groups
Build 20020602 (F2) - Running in the java browsing perspective - I will attach my current preferences file so you can recreate setup - Have two classes, A and B. In class A, define the following: public void foo() { B b = new B(); b.bar(); } - since B#bar does not exist, this is an error. Select the method, and choose "Quick Fix" - The recommendation is to add B#bar. Select this and hit enter - Now the editor switches to showing class B, but the "Types" and "Members" views have not correctly tracked the editor change. Since I have the "Link java browsing view selection to active editor" preference turned on, I would expect this to track correctly.
Created attachment 1223 [details] Eclipse preference file with current pref settings
need to investigate
This is a general workbench issue which bites all part listener users: part events are not fired when editors are internally reused (only the input is set). The optimization is OK but should send the correct events. Note: the same problem can also be reproduced in the Packages view: 1. Link Packages view selection to active editor 2. Repeat the described scenario ==> Packages view selection is out of synch
Changing summary and providing a test case which does not use quick fix: 1. Set editors to 1 2. Check "Link Navigator selection to active editor" 3. From the Navigator open A.java 4. In A.java select B and press F3 ==> A.java remains selected in the Navigator Now set the number of editors to 2 and repeat the test ==> works, i.e. B.java is selected in the Navigator
We don't have an event to describe a change to an editor's input. Using partActivated or partBroughtToTop, or any of the other current events, would be inaccurate. Defer to post 2.0.
Reopened for investigation
*** This bug has been marked as a duplicate of 24508 ***