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 74713 - [EE-24] Not clear how to connect to database
Summary: [EE-24] Not clear how to connect to database
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL: http://ui.netbeans.org/nonav/usabilit...
Keywords:
: 65472 73753 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-10 15:28 UTC by jrojcek
Modified: 2006-12-08 15:11 UTC (History)
0 users

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 2006-04-10 15:28:47 UTC
Finding	
Participant didn't know how to add a new database connection in Runtime window. Tried the contextual 
menu on Databases node and Drivers node.

Severity	
2 participants were significantly slowed down (finally found it).
1 participant modified the existing sample connection instead of creating a new one (it also doesn't work)
2 participants couldn't find it, facilitator had to help them

Recommendation	
Add "Add Database Connection..." menu item or similar into contextual menu on Databases node.
Comment 1 Andrei Badea 2006-04-19 21:52:05 UTC
Fixed.

Checking in src/org/netbeans/modules/db/explorer/actions/AddConnectionAction.java;
/cvs/db/src/org/netbeans/modules/db/explorer/actions/AddConnectionAction.java,v
 <--  AddConnectionAction.java
new revision: 1.19.118.1; previous revision: 1.19
done
Checking in src/org/netbeans/modules/db/explorer/dlg/ConnectionDialog.java;
/cvs/db/src/org/netbeans/modules/db/explorer/dlg/ConnectionDialog.java,v  <-- 
ConnectionDialog.java
new revision: 1.9.6.1.2.1; previous revision: 1.9.6.1
done
Checking in src/org/netbeans/modules/db/explorer/dlg/ConnectionDialogMediator.java;
/cvs/db/src/org/netbeans/modules/db/explorer/dlg/ConnectionDialogMediator.java,v
 <--  ConnectionDialogMediator.java
new revision: 1.1.10.1.2.1; previous revision: 1.1.10.1
done
Checking in src/org/netbeans/modules/db/explorer/dlg/NewConnectionPanel.form;
/cvs/db/src/org/netbeans/modules/db/explorer/dlg/NewConnectionPanel.form,v  <--
 NewConnectionPanel.form
new revision: 1.5.2.1.2.2; previous revision: 1.5.2.1.2.1
done
Checking in src/org/netbeans/modules/db/explorer/dlg/NewConnectionPanel.java;
/cvs/db/src/org/netbeans/modules/db/explorer/dlg/NewConnectionPanel.java,v  <--
 NewConnectionPanel.java
new revision: 1.14.2.1.2.2; previous revision: 1.14.2.1.2.1
done
Checking in src/org/netbeans/modules/db/resources/Bundle.properties;
/cvs/db/src/org/netbeans/modules/db/resources/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.96.2.1.2.1; previous revision: 1.96.2.1
done
Checking in src/org/netbeans/modules/db/resources/explorer.plist;
/cvs/db/src/org/netbeans/modules/db/resources/explorer.plist,v  <--  explorer.plist
new revision: 1.70.56.1.2.1; previous revision: 1.70.56.1
done
Comment 2 Andrei Badea 2006-04-19 22:10:25 UTC
*** Issue 73753 has been marked as a duplicate of this issue. ***
Comment 3 Andrei Badea 2006-05-09 13:51:44 UTC
Reopening cf. jrojcek's request in issue 74723:

jrojcek: BTW, Andrei please change the name of the action on Databases node from
"Add Connection..." to "New Connection...". We're consistently using New
Connection on other places and the dialog title bar is "New Database
Connection". Thanks.

abadea: Re. "Add Connection..." -> "New Connection...". "Add" is consistent with
"Add Driver/Table/Column/Index" on other DB Explorer nodes. Should these action
be renamed too?

jrojcek: Re. Should these action be renamed too? Maybe yes. The guideline we're
using for distinguishing Add and New is something like:
- Use Add if adding from existing set of values. Typically from a file chooser,
or a list of values. When using Add, use Remove as the opposite action.
- Use New when creating something new - specifying it's values like name,
content, etc. When using New, use Delete as the opposite action.

Sometimes it's a bit hard to make choose the right one. I think for connection,
the user is creating new connection more than adding from existing connections.
Comment 4 Andrei Badea 2006-05-10 15:33:42 UTC
Fixed. I renamed "Add Connection" and "Add Driver" to "New Connection" and "New
Driver". But I don't think we should have "New" actions for database objects, it
doesn't make much sense. Instead the actions should be named after the SQL
statements used to create these objects. So we have "Create Table", "Create
View", "Add Column", "Add Index".

Checking in src/org/netbeans/modules/db/resources/Bundle.properties;
/cvs/db/src/org/netbeans/modules/db/resources/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.96.2.1.2.2; previous revision: 1.96.2.1.2.1
done
Comment 5 jrojcek 2006-05-10 16:26:39 UTC
I'm okay with the DB commands to keep them according to SQL statements.

I have to say that I'm not very happy with the current "New", "Add" distinction but that's what we try to use 
now. FWIW, maybe "Create", "Add" would be better. Or "Add New" vs "Add Existing".
Comment 6 Lukasz Grela 2006-08-30 08:53:28 UTC
v.
Comment 7 Andrei Badea 2006-12-08 15:11:12 UTC
*** Issue 65472 has been marked as a duplicate of this issue. ***