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.
A newly created file should be open in the editor and its node selected in the project window. For enterprise file wizards (all beans, service locator, etc.) the file isn't selected in project window. Sometimes the file doesn't even open in the editor (Service Locator). This needs to be checked in detail for all file types!
*** Issue 49663 has been marked as a duplicate of this issue. ***
*** Issue 54974 has been marked as a duplicate of this issue. ***
I have a simple fix for service locator (need to return file object instead of data object). The rest can be more difficult - instantiate is run in AWT thread and as it can last entity bean wizard repost it to RP so it has to open and select results on its own. Especially select seems to be nontrivial.
Checking in j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/patterns/ServiceLocatorWizard.java; /cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/patterns/ServiceLocatorWizard.java,v <-- ServiceLocatorWizard.java new revision: 1.4; previous revision: 1.3 done do we need to fix any other wizard or can we close this?
Petr (Blaha), could you please check all J2EE project templates if they behave correctly (expand and select of node). If yes, please close this issue.
I tested following J2EE wizards: Session, Entity/Entity from database, MDB beans, Web service, Web service client, Web service handler. These wizards open source in editor but don't expand nodes and select representing source node.
Thanks Petr. This means that this issue should stay open.
Radime, we discussed a similar problem recently on nbdev. I don't think it's doable without some new API. Shouldn't we move this to promo F?
Changing to enhancement. As Andrei mentioned, some new API is needed probably.
We do not need any new API. If the instantiate() ran out of EDT this could work (and progress can be reported too). Unless there is something what is returned from wizard not recognized by support and thus not opened.
Problem is that bean node in project view is based on entry in ejb-jar.xml, so when bean class FileObject is returned from wizard, it doesn't select bean node, but Java file in Source Packages.
OK I confused this with another problem. You should talk to Jirka R. and ask him to support Nodes directly returned together with FileObject/DO.
From a UI standpoint this is a defect.
Ok, I filed issue 81345 against the wizard framework to support Nodes - hopefully I am understanding the problem correctly.
Again too late for the release.
In the latest version of Netbeans 6.5, the file is selected in the project window after creation. The point I don't understand in this thread is why should we select the ejb node (and not the bean file) in the project tree when we are working on the bean.java file in the source editor. The existing behavior is similar to java projects and other web projects. Can you give some examples of where this is different?
Not planning to address this in 7.0
NetBeans.org Migration: changing resolution from LATER to WONTFIX
reopen
I have verified it with all beans on NB 6.8 dev build. The bean nodes are selected in the projects tree after creation. So closing as fixed.