Author: ruschein
Date: 2011-01-21 11:59:11 -0800 (Fri, 21 Jan 2011)
New Revision: 23546
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableRowUpdateServiceImpl.java
Log:
Added additional synchronisation.
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableRowUpdateServiceImpl.java
===================================================================
---
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableRowUpdateServiceImpl.java
2011-01-21 19:49:25 UTC (rev 23545)
+++
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableRowUpdateServiceImpl.java
2011-01-21 19:59:11 UTC (rev 23546)
@@ -113,7 +113,7 @@
}
@Override
- public void handleEvent(final RowsAboutToChangeEvent e) {
+ public synchronized void handleEvent(final RowsAboutToChangeEvent e) {
final CyTable table = e.getTable();
if (!tableToListenersMap.containsKey(table))
return;
@@ -123,7 +123,7 @@
}
@Override
- public void handleEvent(final RowsFinishedChangingEvent e) {
+ public synchronized void handleEvent(final RowsFinishedChangingEvent e)
{
final CyTable table = e.getTable();
if (!tableToListenersMap.containsKey(table))
return;
@@ -155,15 +155,15 @@
}
}
- private void rowUpdated(final CyTable table, final CyRow row, String
columnName,
- final Object newValue, final Object newRawValue)
+ private synchronized void rowUpdated(final CyTable table, final CyRow
row, String columnName,
+ final Object newValue, final
Object newRawValue)
{
final List<RowSet> rowSets = tableToRowSetsMap.get(table);
rowSets.add(new RowSet(row, columnName, newValue, newRawValue));
fireUpdateEvents(table);
}
- private void rowCreated(final CyTable table, final CyRow row) {
+ private synchronized void rowCreated(final CyTable table, final CyRow
row) {
final Set<RowSetMicroListenerProxy> proxies =
tableToProxyListenersMap.get(table);
proxies.add(new RowSetMicroListenerProxy(this, eventHelper,
table, row));
--
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.