Bug 156226 - [model][classpath] Allow classpath variable to be marked as non modifiable
Summary: [model][classpath] Allow classpath variable to be marked as non modifiable
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks: 155678
  Show dependency tree
 
Reported: 2006-09-05 12:55 EDT by Martin Aeschlimann CLA
Modified: 2007-03-29 05:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2006-09-05 12:55:55 EDT
3.2

The contributed classpath variables like JUNIT_HOME or JRE_SRC are not meant to be modified. If a user does it, the value will be overridden the next time Eclipse starts and the variable initialializer is called.
In the UI we want to know which variables are 'read-only' so we can block the 'Edit' button.

- suggest an addition the classpath variable initialializer extension point: an optional attribute
 or
a method to reimplement on ClasspathVariableInitializer
- API to get this information:
JavaCore.isClasspathVariableModifiable(String name) or, to solve more outstanding issues:
something like
JavaCore.getClasspathVariableDescription(varName) : ClasspathVariableDescription
ClasspathVariableDescription
  getName, get/setValue, add/removeChangeListener, isDeprecated, isModifiable

see also bug 138599 for other requests regarding classpath variables
Comment 1 Martin Aeschlimann CLA 2006-09-05 12:59:25 EDT
*** Bug 155678 has been marked as a duplicate of this bug. ***
Comment 2 Frederic Fusier CLA 2006-10-27 06:14:51 EDT
Unfortunately, I had not enough time to implement this requirement for 3.3 M3.
Need to make decision for M4 if this bug will still stay in plan or not...
Comment 3 Frederic Fusier CLA 2007-01-19 12:16:56 EST
Released for 3.3 M5 in HEAD stream (using patch attached to bug 138599).
Comment 4 Maxime Daniel CLA 2007-02-06 01:53:09 EST
Verified for 3.3 M5 using build I20070205-1824.