This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 86796 - Run/Debug XML from Project Explorer
Summary: Run/Debug XML from Project Explorer
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-09 17:50 UTC by ssoong
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ssoong 2006-10-09 17:50:51 UTC
When you right click on a node at Project explorer,
if it is a html, htm or jsp, the pop-up menu would give you the opportunity to 
run/debug a file. If it is an xml file, the menu would allow you the 
opportunity to Check/Validate XML, Generate DTD, etc.

What project explorer does not but should perform is read servlet mappings 
from web.xml. e.g., the following servlet mapping in the web.xml mapping any 
laszlo XML files to LPS.

    <servlet-mapping>
        <servlet-name>LPS</servlet-name>
        <url-pattern>*.lzx</url-pattern>
    </servlet-mapping>

Therefore, right-clicking a .lzx file at projects explorer should have pop-up 
menu show both the xml file manipulation as well as run/debug file. Where the 
the servlet to run/debugged is the servlet pointed to by LPS.

On the other hand, we have to admit that *.lzx is merely a URL pattern to be 
caught and redirected to LPS and has nothing whatsoever to do with any file of 
that pattern located within the web folder. That it is up to LPS servlet to 
resolve that pattern to any file it wishes.

Perhaps then, let the user have an opportunity to config the pop-up menu. When 
I opened up Tools ---> Advanced Options -> Object Types -> [XML Objects or JSP 
Objects, etc] -> Actions, I could see actions corresponding to the respective 
types. In particular "Filesystem action", which I presume resolves to whether 
to allow the pop-up to give us an opportunity to validate/run/debug the file 
(as resolved by some kind of mime resolver).

This alternative suggestion, which might be more amenable, is to allow me to 
config Filesystem actions so that I could add in run/debug action for *.lzx 
files.

Then, of course, you might persuade me to construct a html file to launch any 
URLs with a leaf pattern of .lzx - an avoidance which prompted me to put in 
this suggestion in the first place.
Comment 1 Peter Pis 2008-08-19 09:06:10 UTC
Reassigning to web for evaluation.
Comment 2 Martin Balin 2016-07-07 08:55:25 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss