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 156978 - request to expose public APIs in xml.validation
Summary: request to expose public APIs in xml.validation
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Validation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks: 147669
  Show dependency tree
 
Reported: 2009-01-16 22:39 UTC by Samaresh Panda
Modified: 2009-02-19 23:31 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2009-01-16 22:39:25 UTC
This issue is part of a bigger issue to expose public APIs in various modules. See issue 147669.

More specifically, classes in org.netbeans.modules.xml.validation packages have been found very useful.
Comment 1 Samaresh Panda 2009-01-16 23:20:25 UTC
While working on this issue, I have found several things:

1) There are three actions:
   a) Check XML : Which checks for well-formed-ness of the document.
   b) Validate XML : Available as context action and icon in the toolbar in text view.
   c) Validate : Icon in tool bar in graphical views. Does things differently than (b)

2) I really do not see a need for separate "Check" and "Validate" action. IMO, they should be combined to just one:
Validate. Do note that we may have a quick-fix and error annotation implemented for XML editor.

3) The two Validate actions must be combined to produce one and the same result.

4) Legacy actions (a) and (b) are available in xml.tools module, where as (c) is in xml.validation module.
xml.validation was created by the enterprise pack. There is really no need for two modules. We should stick to one and
remove the other.

I'll work on these and keep you informed.