Bug 99208 - [user library] JavaCore should provide API methods to get/store user libraries information
Summary: [user library] JavaCore should provide API methods to get/store user librarie...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 99210 73393
  Show dependency tree
 
Reported: 2005-06-09 13:33 EDT by Frederic Fusier CLA
Modified: 2017-03-06 04:34 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2005-06-09 13:33:43 EDT
Open this bug after having fixed bug 97524.

It appears that JDT/UI uses a dummy project to store and retrieve user libraries
information.

This currently has bad side effect mainly due to the fact that this dummy
project neither exist in workspace nor has Java nature!

JavaModelManager is not designed to work with such project and this is currently
a source of potential bugs...

JDT/Core has to provide API methods to allow its client to store and retrieve
user libraries information in a safer way...
Comment 1 Frederic Fusier CLA 2005-06-09 13:34:49 EDT
Of course post 3.1
Comment 2 Frederic Fusier CLA 2005-08-05 04:50:19 EDT
Reopen for 3.2
Comment 3 Frederic Fusier CLA 2006-02-16 07:37:22 EST
Deferred post 3.2 as M5 is API freeze
Comment 4 Frederic Fusier CLA 2007-06-21 09:20:19 EDT
Reopen as LATER is deprecated...
Comment 5 Boris Brodski CLA 2013-04-26 05:43:08 EDT
+1

It should be a legal way to add/change/remove user library information.

Currently

UserLibraryManager userLibraryManager = JavaModelManager.getUserLibraryManager();
userLibraryManager.setUserLibrary(libName, entries, isSystemLibrary);


requires '@SuppressWarnings("restriction")' and sometimes generates nasty side effects.
Comment 6 Jay Arthanareeswaran CLA 2013-04-26 11:05:22 EDT
Tentatively targeting 4.4
Comment 7 Srikanth Sankaran CLA 2014-04-08 04:44:28 EDT
Too busy with Java 8 maintenance work - retargetting for 4.5
Comment 8 Manoj N Palat CLA 2015-04-07 23:17:55 EDT
Crossed the time limit for API changes. moving to 4.6
Comment 9 Jay Arthanareeswaran CLA 2017-03-06 04:34:14 EST
I could look at this for M6, but considering that there's none pushing for it, I am taking it off the radar.