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 54780 - New File wizard shold select the created file in Project window
Summary: New File wizard shold select the created file in Project window
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords: UI
: 49663 54974 (view as bug list)
Depends on: 81345
Blocks:
  Show dependency tree
 
Reported: 2005-02-09 19:22 UTC by jrojcek
Modified: 2009-11-03 14:36 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2005-02-09 19:22:10 UTC
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!
Comment 1 Martin Adamek 2005-02-17 15:28:28 UTC
*** Issue 49663 has been marked as a duplicate of this issue. ***
Comment 2 Martin Adamek 2005-03-02 08:24:06 UTC
*** Issue 54974 has been marked as a duplicate of this issue. ***
Comment 3 _ rkubacki 2005-03-04 09:33:43 UTC
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.
Comment 4 _ rkubacki 2005-03-04 09:39:39 UTC
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?
Comment 5 jrojcek 2005-03-14 17:23:16 UTC
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.
Comment 6 Petr Blaha 2005-03-15 10:47:12 UTC
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.
Comment 7 jrojcek 2005-03-15 12:32:10 UTC
Thanks Petr. This means that this issue should stay open.
Comment 8 Andrei Badea 2005-03-17 23:43:30 UTC
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?
Comment 9 Martin Adamek 2005-10-05 11:16:27 UTC
Changing to enhancement. As Andrei mentioned, some new API is needed probably.
Comment 10 _ rkubacki 2005-10-05 12:34:34 UTC
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.
Comment 11 Martin Adamek 2005-10-05 13:01:19 UTC
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.
Comment 12 _ rkubacki 2005-10-05 13:23:28 UTC
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.
Comment 13 jrojcek 2005-10-11 12:02:01 UTC
From a UI standpoint this is a defect.
Comment 14 Petr Jiricka 2006-07-28 14:44:37 UTC
Ok, I filed issue 81345 against the wizard framework to support Nodes -
hopefully I am understanding the problem correctly.
Comment 15 martin_adamek 2007-08-31 11:08:26 UTC
Again too late for the release.
Comment 16 _ jyothivasa 2008-11-06 23:28:44 UTC
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?
Comment 17 _ jyothivasa 2008-11-17 21:37:56 UTC
Not planning to address this in 7.0
Comment 18 Quality Engineering 2009-11-02 11:15:11 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX
Comment 19 Andrey Yamkovoy 2009-11-03 14:35:47 UTC
reopen
Comment 20 Andrey Yamkovoy 2009-11-03 14:36:20 UTC
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.