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 72035 - Nothing opened in the editor after entity from db wizard
Summary: Nothing opened in the editor after entity from db wizard
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 23:07 UTC by Rochelle Raccah
Modified: 2016-07-07 08:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2006-01-30 23:07:29 UTC
If I use the New Entity from DB wizard, when I finish the wizard, I expect
something to be opened in the editor.  Right now, there doesn't seem to be an
equivalent to an overview file, so it is not clear what should be opened,
especially if multiple Entities are generated.  Need HIE input.
Comment 1 Rochelle Raccah 2006-06-27 23:41:40 UTC
Note that this is also inconsistent with the behavior in the New JSF from Entity
wizard which opens all generated classes when the wizard is finished.
Comment 2 jrojcek 2006-06-28 08:04:47 UTC
If the wizard creates multiple instances, they should *not* open in the editor. The user can actually get 
lost when 5, 10 or 15 files open in the editor at the same time. This is the case of "Entity from DB", "JSF 
from Entity" and other wizards. All created files should just be selected in Project window after finishing 
the wizard.

We might do a special case and open the created file, if only one instance is created.
Comment 3 Rochelle Raccah 2006-06-29 00:40:35 UTC
I'm okay with not opening the files but I think there are 2 points here:
1) (once we have one) an overview file should be opened
2) to be consistent and to follow the rule you mentioned below, the files after
jsf from entity wizard should also not be opened

perhaps 2 should be filed as a separate bug?
Comment 4 Pavel Buzek 2006-06-29 00:56:02 UTC
So either close this issue or correct it to say that jsf should not open the
files. If you file a new one assign to me. Tx.
Comment 5 Rochelle Raccah 2006-06-29 01:03:22 UTC
What I meant to say is that this issue should be for #1 and I can file a 
separate one for #2.
Comment 6 Pavel Buzek 2006-06-29 01:14:30 UTC
I do not understand what you mean by 1. Is it a bug in code that does not exist
yet? :-)
Comment 7 Rochelle Raccah 2006-06-29 01:18:26 UTC
To me, it's a regression that when you generate for J2EE 1.4 (CMPs) you get the 
ejb-jar.xml opened but here you have nothing.  So I intended this as a future 
placeholder to open a project overview of entities when we have one, but it was 
assigned to Jano in case we should open one or more of the artifacts we 
currently create (instead).
Comment 8 Pavel Buzek 2006-06-29 01:38:13 UTC
Currently there is not overview file other then persistence.xml. But it may not
even exist and in Java EE 5 module it does not list the entity classes (only in
J2EE 1.4 or J2SE apps). So if Jano decides to open persistence.xml (if it
exists) we can. Otherwise there is nothing to open so I will close the issue. It
does not make much sense to me to have a defect open for something we may decide
to do IF we implement some feature .....
Comment 9 jrojcek 2006-06-29 09:50:52 UTC
No, we should not open persistence.xml. Rochelle, when you file an issue against JSF, please close this 
issue. Or we can change it to an enhancement. Thanks.
Comment 10 Rochelle Raccah 2006-06-29 21:06:24 UTC
Okay, changed this to a future enhancement and filed issue 79452 for the JSF
from Entity case.
Comment 11 Martin Balin 2016-07-07 08:55:57 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss