Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 33279 - Impossible to reset JRE_LIB to default
Summary: Impossible to reset JRE_LIB to default
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 31586
  Show dependency tree
 
Reported: 2003-02-26 10:54 EST by Tod Creasey CLA
Modified: 2003-03-06 14:32 EST (History)
0 users

See Also:


Attachments
Preferences export with JRE_LIB (3.97 KB, text/plain)
2003-02-26 10:55 EST, Tod Creasey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2003-02-26 10:54:26 EST
RC1

If your JRE_LIB has been set (say by importing preferences) and you reset to 
default you will still have the imported value.

STEPS
1) Import the (to be attached) preferences file
2) Open the classpath variables page
3) Select restore defaults - JRE_LIB will show up as reserved
4) Select OK
5) Reopen the preferences
6) Select classpath variables page - JRE_LIB is not reset.
Comment 1 Tod Creasey CLA 2003-02-26 10:55:25 EST
Created attachment 3717 [details]
Preferences export with JRE_LIB
Comment 2 Erich Gamma CLA 2003-02-27 04:23:58 EST
moving to JDT - Debug
Comment 3 Darin Wright CLA 2003-02-27 09:50:53 EST
JRE_LIB is bound to the default JRE - pressing the "Restore Defaults" will have 
no effect.
Comment 4 Darin Wright CLA 2003-03-04 21:07:37 EST
JRE lib is always bound to the default JRE (as indicated with the check box on 
the installed JREs preference page) - restoring defaults will not have any 
effect.
Comment 5 Tod Creasey CLA 2003-03-05 08:28:36 EST
You should at least keep the look consistent for the user.

Are you saying that the obsolete path shown to the user is not the actual 
path? If not then you should show the correct one.
Comment 6 Darin Wright CLA 2003-03-05 14:08:44 EST
This preference page is owned by JDT-UI. Moving there.

I do not beleive that the "Restore Defaults" button should be present on this 
preference page, as this operation does not makes sense for classpath 
variables - you would need to call the classpath variable initializers to do 
this (and even then, there is no notion of default). Clearing the list is not 
the desired behavior either (which is the current behavior).

The JRE_LIB variable tracks the default JRE as checked in the Installed JRE 
preferece page. If there is no default JRE, it will be empty.

Comment 7 Dirk Baeumer CLA 2003-03-06 14:32:17 EST
Fixed for RC2. The defaults button got removed.