Author: ruschein
Date: 2011-02-15 16:01:29 -0800 (Tue, 15 Feb 2011)
New Revision: 24140
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
Log:
Fixed a problem with the renaming of columns.
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
===================================================================
---
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
2011-02-15 23:59:41 UTC (rev 24139)
+++
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
2011-02-16 00:01:29 UTC (rev 24140)
@@ -125,6 +125,9 @@
}
void updateColumnName(final String oldColumnName, final String
newColumnName) {
+ if (oldColumnName.equals(newColumnName))
+ return;
+
synchronized(this) {
if (currentlyActiveAttributes.contains(oldColumnName)) {
currentlyActiveAttributes.remove(oldColumnName);
@@ -145,6 +148,7 @@
final CyColumn column = types.get(oldColumnName);
types.put(newColumnName, column);
+ types.remove(oldColumnName);
}
eventHelper.fireSynchronousEvent(new
ColumnNameChangedEvent(this, oldColumnName,
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.