Community
Participate
Working Groups
I20081111-0800. The Java model has code to handle a project refresh (see references to PRE_REFRESH in JDT Core). However, it does not refresh referenced JARs in that code (or maybe it does refresh them but does not send an elementChanged delta). Test Case: 1. create a JAR with ClassInJAR.doIt() 2. add it to the build path as external JAR 3. replace the JAR with something that doesn't contain that method 4. open the Navigator besides the Package Explorer 5. in the Navigator select the project and press F5 (Refresh) ==> JAR is not refreshed in the Package Explorer because no elementDelta is sent from JDT Core.
This would be a useful feature indeed.
POST_CAHNGE event is sent for steps from comment 0. I checked that and the sent event states that the description of the refreshed project has changed. I think that we could use it instead POST_CHANGE event (bug 255162).
Which one exactly? Seems strange that you send a delta when a file outside the workspace changes.
(In reply to comment #3) The event is sent only if refreshed from the package explorer. So this is just a result of JDT action.
*** Bug 262343 has been marked as a duplicate of this bug. ***
This is same as bug 305172. *** This bug has been marked as a duplicate of bug 305172 ***
Verified for 3.7M4 using build I20101205-2000