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 62429 - XML Actions for Generated XML File Type
Summary: XML Actions for Generated XML File Type
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 20:15 UTC by Geertjan Wielenga
Modified: 2005-09-05 09:51 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 Geertjan Wielenga 2005-08-16 20:15:36 UTC
In the New File Type wizard, when you choose "by XML Root Element" in the first
panel, you can only be creating an XML file type. Therefore, if this radiobutton
is selected, the layer.xml should also register actions like "Check XML",
"Validate XML", "Generate DTD", "XSL Transformation".

The way things are now, you definitely need (at least some of) them, and need to
add them manually.
Comment 1 Jesse Glick 2005-08-16 20:19:27 UTC
Maybe. This stuff is available from the xml/api module. In practice, if you
provided Validate you would also need to provide a catalog, which needs another
API. (These APIs seem to be semistable at this point - they are not actively
supported but not being broken either.) I would not want to go too deeply into
providing XML editing infrastructure generally; the user may not be interested
in showing XML text editing at all.
Comment 2 Geertjan Wielenga 2005-08-16 20:26:13 UTC
OK, but then why would a user create a new file type based on a namespace or XML
root element? If they're interested in opening it in the Source Editor, then
they're interested in editing it, right?
Comment 3 Geertjan Wielenga 2005-08-16 20:27:33 UTC
But I understand your other points and think this would make for a fine help topic.
Comment 4 Jesse Glick 2005-08-16 21:45:52 UTC
Many people making a new XML-based file type *aren't* interested in opening it
in the XML editor. We provide the one line of code and one layer entry needed to
make it possible to just open the file, but providing full XML editing support
is another matter. (As is providing realistic non-textual editing support, which
is quite tricky to get right given the current APIs.)
Comment 5 Geertjan Wielenga 2005-08-24 13:33:21 UTC
I think this can be closed -- don't know what status to set it to though.
WONTFIX? Or maybe the person to whom this is assigned should do that.
Comment 6 Milos Kleint 2005-08-24 13:37:51 UTC
ok, closing as wontfix.