Bug 4155 - Source Attachment wizard for variable classpath entries not correct (1GJ6X9P)
Summary: Source Attachment wizard for variable classpath entries not correct (1GJ6X9P)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:06 EDT by Dave Dykstal CLA
Modified: 2001-11-21 11:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Dykstal CLA 2001-10-10 23:06:58 EDT
(1) Create a directory containing a .jar file and a .zip source archive for the jar
The .zip archive should have a non-null root path to the source.
(2) create a classpath variable which points to this directory
(3) place this .jar file in your classpath using the variable
(4) use the Java Source Attachment wizard to set the source archive

Attempt to use the "root variable path".  The "browse..." button is inactive
unless the text field is non-empty.  If the text field is non-empty, pressing the 
browse... button shows the source archive no matter what is in the field.  If 
you make a selection in the paths shown that are relative to the archive, any
path that is deeper than the first is entered without the intervening path variables.

For example, suppose the archive resolves to c:\blort\blort.zip.  I can type "junk" in the
root variable path field to activate the "browse..." button.  Pressing "browse..." shows the 
structure of "c:\blort\blort.zip".  If I select work/src/main as the source root directory 
in blort.zip for blort.jar and press OK the text field for "root variable path" now reads: junk/main.

NOTES:
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:14:24 EDT
moved to 'active'
Comment 2 DJ Houghton CLA 2001-10-29 17:34:51 EST
PRODUCT VERSION:
build 131

Comment 3 Martin Aeschlimann CLA 2001-11-21 11:40:12 EST
This was fixed with the source attachment rework in 2.0.
Found a problem with the enablement of the root-'extension' button.
fixed > 11120