Bug 156226

Summary: [model][classpath] Allow classpath variable to be marked as non modifiable
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: marcus.walla, philippe_mulet
Version: 3.2Keywords: api
Target Milestone: 3.3 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 155678    

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.