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

Bug 360854

Summary: Attach Source button from Class File Editor is broken in dynamic web project
Product: [WebTools] WTP Java EE Tools Reporter: Scott Van Wart <silvaran>
Component: jst.j2eeAssignee: jst.j2ee <jst.j2ee-inbox>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Scott Van Wart CLA 2011-10-13 11:40:26 EDT
Build Identifier: 20110615-0604

When using Eclipse's Open Type dialog to open a .class file within a JAR, the Class File Editor appears (if there are not already sources attached).  You can click Attach Source... and choose a directory or ZIP/JAR location for the source files.  Doing this with a dynamic web project has no effect, and the Class File Editor screen stays the same.  You need to go in through the project's build path dialog, choose the specific JAR associated with the desired class file, and attach sources that way.

Reproducible: Always

Steps to Reproduce:
1. Open a .class file in a JAR in WebContent/WEB-INF/lib of a dynamic web project.
2. Choose Attach Source...
3. Select a location for the sources (I've only tried .zip files in my workspace that have accompanying .java files).
4. Click OK.
5. Nothing happens.