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

Bug 317844

Summary: [explorer] NamespaceGroups not provided for JavaScript files
Product: [WebTools] JSDT Reporter: Ian Tewksbury <itewksbu>
Component: GeneralAssignee: Ian Tewksbury <itewksbu>
Status: CLOSED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: 3.2Flags: thatnitind: review+
Target Milestone: 3.2.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix Patch none

Description Ian Tewksbury CLA 2010-06-24 11:30:24 EDT
Currently NamespaceGroups are only provided for under the JavaScript Resources node for the various JavaScript libraries and source folders.  This means that when expanding a library or source folder under the JavaScript Resources node by default types are listed under namespace groups (package fragment groups).  But this does not hold true when expanding a JavaScript file.  When performing this action all of the types defined in that file are listed in alphabetical order with no namespace separation.

I am attaching a patch that updates NamespaceGroup to function under a IJavaScriptUnit node (a JS file node) and updating the PackageExplorerContentProvider to create these NamespaceGroup nodes for IJavaScriptUnit nodes.
Comment 1 Ian Tewksbury CLA 2010-06-24 11:31:09 EDT
Created attachment 172624 [details]
Fix Patch

The patch as described in the description.
Comment 2 Chris Jaun CLA 2010-06-28 15:08:39 EDT
Patch checked in by Nitin.
Comment 3 Ian Tewksbury CLA 2010-07-09 08:39:27 EDT
Verified in WTP 3.2.1