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.
In refactoring, when we show the proposed changes, in java there's a possibility to jump directly to the element. To add such functionality, we would need some api (+ of course it's implementation) to get the location information. I think refactoring api needs some PositionRef, but anything convertible would be OK. This is general to all dds.
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