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

Summary: ConnectionManager.getDefault().selectConnectionInExplorer does not select DBConnection Node if displayname changed
Product: db Reporter: toben
Component: CodeAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: normal CC: medeag
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

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. ***