Bug 6488

Summary: Classpath Variables (allow plugins to reserve some)
Product: [Eclipse Project] JDT Reporter: Richard Kulp <richkulp>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Richard Kulp CLA 2001-11-30 16:30:06 EST
Plugins should be able to mark classpath variables that they create as reserved 
so that the user can't accidently change (just like JRELIB, ... are reserved). 
They should have the option of marking them reserved.
Thanks,
Rich Kulp
Comment 1 Philipe Mulet CLA 2001-11-30 18:45:36 EST
Interesting idea. For info, JDT/Core owns no variable in particular. JDT/UI 
defines the trio JRE_* and show them as reserved.

I believe though that there should be a mechanism for plugins to declare 
classpath variables which then are recognized as such, and the respective 
plugin inference would be the only way to update them.

JDT/Core only defines an infrastructure for defining and using them, it does 
not come with any preferred ones.
Comment 2 Philipe Mulet CLA 2002-03-14 12:47:22 EST
Will consider post 2.0
Comment 3 Philipe Mulet CLA 2003-02-14 09:18:26 EST
Closing, registered variables are detectable by asking:

JavaCore.getClasspathVariableInitializer(varName) != null
Comment 4 Philipe Mulet CLA 2003-02-14 09:19:00 EST
Closing