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 215602 - Changing displayName property of connection does not update sorting in connection list
Summary: Changing displayName property of connection does not update sorting in connec...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2012-07-16 19:52 UTC by matthias42
Modified: 2012-08-15 01:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch v1 (5.48 KB, patch)
2012-07-16 19:52 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description matthias42 2012-07-16 19:52:44 UTC
Created attachment 122075 [details]
proposed patch v1

Changing the display name of a node should also update it's position inside the connection list. The attached patch should fix that.
Comment 1 Jaroslav Havlin 2012-08-14 13:49:03 UTC
Applied as http://hg.netbeans.org/core-main/rev/d47be20b52b7

I've slightly changed the code, so that the renamed node is selected in the explorer after renaming. 
I've not found any reliable way other than adding a temporary NodeListener to RootNode. If you have a better idea, please let me know.

Again, thank you very much, Matthias.
Comment 2 Quality Engineering 2012-08-15 01:40:09 UTC
Integrated into 'main-golden', will be available in build *201208150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d47be20b52b7
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #215602: Changing displayName property of connection does not update sorting in connection list