Community
Participate
Working Groups
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.
Added following APIs: ClasspathContainerInitializer - canUpdateClasspathContainer(IPath, IJavaProject) - requestClasspathContainerUpdate(IPath, IJavaProject, IClasspathContainer) JavaCore - getClasspathContainerInitializer(String) Fixed.
Verified.