Community
Participate
Working Groups
Eclipse 204 Windows 2000 1) Open the Java Type Hierarchy Perspective 2) Open a java editor on the following java file: public class Test { private int x; public int getX() { return 1; } public int getY() { return 1; } public int getZ() { return 1; } } 3) Click on "Show source of selected Element Only" item in toolbar 4) Select the method getX in the Hiearchy view and change it to look like this: public int getX() { //1 //2 //3 return 1; } 5) Select the method getZ - one that is below the method that you have edited in the file. Notice that method getY is shown in the editor. If you perform a save, the method list gets resynched with the file positions.
I couldn't reproduce this. Its the reconciler that does the range updating (not an save). Sometimes when the machine is overloaded threads with lower prio dont get cycles. Never saw this for the reconciler, but for the hover.
I can reproduce it every time - with or without Lotus Notes running - which means to me that it is not a thread starvation issue. Please follow the steps exactly. In fact I have seen this even when in the "Show Complete Source" mode and I click on the Type Hierarchy to get to another method - I sometimes get the method in the editor above the one I am selecting in the tree (depending how much code I have added).
Ok, I can reproduce it. Thanks. JavaEditor.setSelection should try to find the element in the working copy.
Build > 207.