Community
Participate
Working Groups
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.
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.
Changing to a RFE.