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.
Issue 79501 needs to show the 'New DB connection' dialog with some data prefilled. The current API allows to pass the JDBC driver and connection URL. The change requires to add the user name and password.
Created attachment 32056 [details] Proposed change
I would like to ask for a review of the attached API change. It adds a ConnectionManager.showAddConnectionDialog() method which also takes a database user and password apart from the JDBCDriver and database URL, which were taken by the existing methods. It also adds showAddConnectionDialogFromEventThread() methods similar to the existing showAddConnectionDialog() methods, but which return the added connection and must be called from the event dispatching thread.
Since there were no comments, I will integrate tomorrow. Thank you for the review.
Fixed. Checking in apichanges.xml; /cvs/db/apichanges.xml,v <-- apichanges.xml new revision: 1.1.4.2.2.4; previous revision: 1.1.4.2.2.3 done Checking in arch.xml; /cvs/db/arch.xml,v <-- arch.xml new revision: 1.3.2.2.2.6; previous revision: 1.3.2.2.2.5 done Checking in nbproject/project.properties; /cvs/db/nbproject/project.properties,v <-- project.properties new revision: 1.8.2.3.2.7; previous revision: 1.8.2.3.2.6 done Checking in src/org/netbeans/api/db/explorer/ConnectionManager.java; /cvs/db/src/org/netbeans/api/db/explorer/ConnectionManager.java,v <-- ConnectionManager.java new revision: 1.2.2.1.2.4; previous revision: 1.2.2.1.2.3 done Checking in src/org/netbeans/modules/db/explorer/actions/ConnectUsingDriverAction.java; /cvs/db/src/org/netbeans/modules/db/explorer/actions/ConnectUsingDriverAction.java,v <-- ConnectUsingDriverAction.javanew revision: 1.28.2.1.2.4; previous revision: 1.28.2.1.2.3 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.4; previous revision: 1.14.2.1.2.3 done