Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 82055

Summary: Attach source in edit JRE dialog doesn't work when "use default system libraries" is selected
Product: [Eclipse Project] JDT Reporter: Brock Janiczak <brockj>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: trivial    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Brock Janiczak CLA 2004-12-31 19:41:11 EST
Version: 3.1.0
Build id: 200412210800

While editing a JRE you are given the option to attach source to the classpath
entries of the JRE.  When you have "use default system libraries" on this
doesn't really make sense (you are overriding the default).  Either the button
should be disabled, or the processing should be fixed to not overwrite user
defined source attachments.  I think it makes more sense to disable the button.
 Unfortunately, the action behind the button is used in the launch config dialog
too.

Test:
1. Open the "Installed JREs" preference page
2. Edit an existing JDK
3. Ensure "use default system libraries" is true
4. Select a classpath entry that doesn't have a source attachment already
5. Attempt to attach source to the classpath entry
6. Notice the icon in the viewer doesn't update to indicate there is a source
attachment
Comment 1 Darin Wright CLA 2005-01-04 09:24:58 EST

*** This bug has been marked as a duplicate of 68342 ***