# HG changeset patch # User Matthias Bläsing # Date 1329661383 -3600 # Branch dbfixes # Node ID 602dbc0105aae1e466ac73166e0ce7b449f2d4cb # Parent 2815ae789c4846d3674ba8cba7cbddb09e169bf9 Fix handling updating of the DisplayName property of the connection node - the property change event was never fired. Beware: The changing of the underlying connection displayname has to be done in the setDisplayName method, else the property change event is fired with the new name als old and new value. diff --git a/db/src/org/netbeans/modules/db/explorer/node/ConnectionNode.java b/db/src/org/netbeans/modules/db/explorer/node/ConnectionNode.java --- a/db/src/org/netbeans/modules/db/explorer/node/ConnectionNode.java +++ b/db/src/org/netbeans/modules/db/explorer/node/ConnectionNode.java @@ -147,7 +147,6 @@ } else if (nps.getName().equals(PROP_DEFSCHEMA)) { connection.setSchema(val.toString()); } else if (nps.getName().equals(DISPLAYNAME)) { - connection.setDisplayName(val.toString()); setDisplayName(val.toString()); refreshNode = false; } @@ -371,7 +370,9 @@ @Override public void setDisplayName(String name) { + String old = getDisplayName(); connection.setDisplayName(name); + fireDisplayNameChange(old, name); } @Override