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 79359 - Entity Classes from DB: disable the DB schema combo box when there are no schemas
Summary: Entity Classes from DB: disable the DB schema combo box when there are no sch...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 17:19 UTC by Kenneth Ganfield
Modified: 2006-07-04 09:57 UTC (History)
1 user (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 Kenneth Ganfield 2006-06-28 17:19:02 UTC
In the Database Tables page of the Entity Classes from Database wizard.

The wizard lets me select a database connection or database schema.
if i select db schema, the drop-down list is empty, and there is not way to
choose a db schema. 

I am assuming that like cmp before, the IDE only looks in conf dir.

Seems that if there is no db schema in conf dir, then the Database Schema option
in the wizard should be disabled. Either that or be able to browse to a schema
somewhere else.
Comment 1 Andrei Badea 2006-06-29 08:58:02 UTC
Jano, please comment. Simple fix, but I'm afraid the user would not know why the
Database Schema radio button is disabled. Should we display a message like <no
database schemas in project> in the combo box with schemas?

Please reassign back to me after you evaluate.
Comment 2 jrojcek 2006-06-29 11:55:33 UTC
I think the info label in the combo box is better. The combo box should be empty. If the user expands the 
combo, the info label shows up. The label has to fit into the combo box and it should not permit the user 
to select the label.
Comment 3 Andrei Badea 2006-06-30 09:36:13 UTC
What about just disabling the combo box and selecting the <no
database schemas in project> label? Does the user really need to be able to
expand the combo box?
Comment 4 jrojcek 2006-06-30 10:06:38 UTC
Oh yes. Much simpler and solves the problem. Thanks.
Comment 5 Andrei Badea 2006-07-04 09:57:26 UTC
Fixed.

Checking in
src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Bundle.properties;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Attic/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.1.2.3.2.18; previous revision: 1.1.2.3.2.17
done
Checking in
src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/DBSchemaUISupport.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Attic/DBSchemaUISupport.java,v
 <--  DBSchemaUISupport.java
new revision: 1.1.2.6; previous revision: 1.1.2.5
done
Checking in
src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/DatabaseTablesPanel.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Attic/DatabaseTablesPanel.java,v
 <--  DatabaseTablesPanel.java
new revision: 1.1.2.23; previous revision: 1.1.2.22
done