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.
Summary: | Need an API to find location of an element in xml | ||
---|---|---|---|
Product: | xml | Reporter: | Martin Grebac <mgrebac> |
Component: | API | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | pfiala |
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Martin Grebac
2005-02-02 16:01:06 UTC
The connected requirement would be the ability to open dd editor in xml view with specific element shown. (Maybe this is already there, I'm just writing it here just to be sure) Implemented. Use : XMLMultiViewDataObject:showElement(Object element) method, e.g. ... DDDataObject dObj = .........; WebApp webApp = dObj.getWebApp; Servlet servlet = webApp.findBeanByName("Servlet","ServletName","ControllerServlet"); dObj.openElement(servlet); ... I am sorry for small mistake. The last command should be : ... dObj.showElement(servlet); Actually, the showElement() method does not fulfil the original requirement for PositionBounds. Is it possible to get PositionBounds somehow? OK, this is a problem of XML editor. Nevertheless, you can use showElement() method for refactoring related to web.xml/ejb-jar.xml. Navigation to the graphical editor should be preferred to xml editor everywhere where it is possible. positionbounds are not needed now, so marking this again as already fixed v |