Bug 27652 - DCR - Need a way to request container initializers to update their container definitions
Summary: DCR - Need a way to request container initializers to update their container ...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-04 06:53 EST by Philipe Mulet CLA
Modified: 2002-12-17 12:09 EST (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-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.