Bug 27652

Summary: DCR - Need a way to request container initializers to update their container definitions
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2002-12-04 06:53:11 EST
Build 2.1-M3

In order to provide a generic UI for modifying containers, a mechanism for 
requesting container providers (implementations of 
ClasspathContainerInitializer) to update some container definitions would be 
needed.

Basically, a generic UI could visualize containers in a generic way (using 
IClasspathContainer APIs), and could provide ways to customize these containers 
with different source attachments etc...

A callback mechanism would be necessary to indicate the container provider to 
update its container definition based on some new IClasspathContainer 
definition.

Note that the incoming container (provided by generic UI) would not replace the 
provider one, but only act as suggesting new values for the public container 
slots (like new name, new entries, etc...). The container provider would then 
need to reconcile the incoming container with its real one.

Unclear whether the JavaCore should be made aware of this change, at some point 
it would need to get informed that the old container cached value became 
obsolete.
Comment 1 Philipe Mulet CLA 2002-12-09 09:26:56 EST
Added following APIs:
ClasspathContainerInitializer
- canUpdateClasspathContainer(IPath, IJavaProject)
- requestClasspathContainerUpdate(IPath, IJavaProject, IClasspathContainer)

JavaCore
- getClasspathContainerInitializer(String)

Fixed.
Comment 2 David Audel CLA 2002-12-17 12:09:45 EST
Verified.