Bug 255174

Summary: Java model should refresh external libraries on PRE_REFRESH
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jay Arthanareeswaran <jarthana>
Status: VERIFIED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: jarthana, krzysztof.daniel, markus.kell.r, satyam.kandula, Szymon.Brandys
Version: 3.5   
Target Milestone: 3.7 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2008-11-13 08:32:06 EST
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.
Comment 1 Jerome Lanneluc CLA 2009-01-06 05:22:39 EST
This would be a useful feature indeed.
Comment 2 Szymon Brandys CLA 2009-02-13 10:01:20 EST
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).
Comment 3 Dani Megert CLA 2009-02-13 10:08:37 EST
Which one exactly? Seems strange that you send a delta when a file outside the workspace changes.
Comment 4 Szymon Brandys CLA 2009-02-13 10:13:34 EST
(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.
Comment 5 Dani Megert CLA 2009-03-13 06:30:02 EDT
*** Bug 262343 has been marked as a duplicate of this bug. ***
Comment 6 Jay Arthanareeswaran CLA 2010-12-01 01:31:17 EST
This is same as bug 305172.

*** This bug has been marked as a duplicate of bug 305172 ***
Comment 7 Satyam Kandula CLA 2010-12-07 05:15:05 EST
Verified for 3.7M4 using build I20101205-2000