Bug 13989 - Package view doesn't refresh after JRE switching
Summary: Package view doesn't refresh after JRE switching
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 08:41 EDT by Philipe Mulet CLA
Modified: 2002-04-17 08:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2002-04-17 08:41:57 EDT
Build 20020416

1. Create a new workspace with 2 projects.
2. Enable show referenced libraries
3. Turn off auto-build
4. Go the installed JRE settings, and define another one
5. Switch to this new default JRE 

Note that the package view did not update.
Comment 1 Philipe Mulet CLA 2002-04-17 08:45:26 EDT
The reason for this is that the Java delta did not get notified due to a bug in 
the delta batching on JavaModel operations.

Note that if there had been some parallel resource changes (or marker changes) 
then the delta would have got fired and thus the package view refreshed. This 
can occur if auto-build is on (Java Builder triggers some resource changes if 
classpath changes) or there are some project with classpath problems (missing 
entries, cycles, ... will induce some marker refreshes).

Right now, the package view will only be refreshed at the next resource 
modification (deferred).
Comment 2 Philipe Mulet CLA 2002-04-17 08:58:50 EDT
Fixed by changing the JavaModel operation batching strategy (ignore situation 
where there are some awaiting deltas, as soon as an operation doesn't modify 
resources, queued deltas are fired).