Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320461 - [outline] JSP Editor Outline does not expand the SCRIPT node
Summary: [outline] JSP Editor Outline does not expand the SCRIPT node
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 02:34 EDT by Johannes Schade CLA
Modified: 2013-06-19 11:10 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Schade CLA 2010-07-21 02:34:27 EDT
Build Identifier: 20100617-1415

When a JSP file is created and edited, the accompanying Outline View shows the HTML elements as nodes of a tree. If a SCRIPT element is added, this appears as a node as should be. However, when functions are defined inside the SCRIPT element, the outline does not show the "+" sign marking the SCRIPT element as expandable and the functions cannot be seen as nodes on the outline. However, similar nodes are visible when the file created and edited is an HTML rather than a JSP file (see bug 320370).

Reproducible: Always

Steps to Reproduce:
1. Select the WebContent on  the Project Explorer
2. Right-click and select New on the context menu. This open a submenu.
3. On the submenu select JSP File. This opens the New JSP File dialogue.
4. On the New JSP File dialogue enter a file name and clcik Finish. This opens the new JSP in the editor and shows the corresponding Outline.
5. On the editor add a SCRIPT HTML element inside the HEAD. The SCRIPT node appears on the Outline.
6. Enter some JavaScript functions inside the SCRIPT element. No corresponding nodes appear on the Outline. Even opnening and closing the editor does not change this.
Comment 1 Rakesh CLA 2010-07-23 06:27:12 EDT
Actually this is correct behaviour.We don't support showing script children yet , both in jsp and html.You are seeing script child in html as a side-effect of one extension point .
"org.eclipse.wst.sse.ui.adapterFactoryDescription" is extended by  both 
"org.eclipse.wst.html.ui" and  "org.eclipse.wst.jsdt.web.ui" with "org.eclipse.wst.html.core.htmlsource" as content type.HTML editor is picking up jsdt's adapter factory.
Comment 2 Nitin Dahyabhai CLA 2010-07-23 16:51:19 EDT
Changing to a RFE.