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 200857 - ConnectionManager.getDefault().selectConnectionInExplorer does not select DBConnection Node if displayname changed
Summary: ConnectionManager.getDefault().selectConnectionInExplorer does not select DBC...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 205891 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-11 07:46 UTC by toben
Modified: 2011-12-03 22:35 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 toben 2011-08-11 07:46:12 UTC
I created a DatabaseConnection programmatically and changed its display name. 
ConnectionManager.getDefault().selectConnectionInExplorer does not work with this DB-Connection. The problem lies in

org.netbeans.modules.db.explorer.DatabaseConnection  
selectInExplorer()

The connection is searched using the name of the database connection, which differs from its display name, and the name of the connection nodes within the explorer, which is identical to the database connections display name.

Thanks

Tobias
Comment 1 Jiri Rechtacek 2011-11-21 11:20:34 UTC
core-main/rev/5bcb49b07f30
Comment 2 Quality Engineering 2011-11-22 15:52:38 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/5bcb49b07f30
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #200857: ConnectionManager.getDefault().selectConnectionInExplorer does not select DBConnection Node if displayname changed
Comment 3 matthias42 2011-12-03 22:35:47 UTC
*** Bug 205891 has been marked as a duplicate of this bug. ***