Author: mes
Date: 2011-01-24 13:45:15 -0800 (Mon, 24 Jan 2011)
New Revision: 23576
Modified:
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
Log:
synchronized some of SwingTaskMonitor that was not
Modified:
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
===================================================================
---
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
2011-01-24 21:42:37 UTC (rev 23575)
+++
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
2011-01-24 21:45:15 UTC (rev 23576)
@@ -53,7 +53,7 @@
dialog.setVisible(true);
}
- public void close() {
+ public synchronized void close() {
if (dialog != null) {
dialog.dispose();
dialog = null;
@@ -109,11 +109,11 @@
dialog.setException(exception, "The task could not be completed
because an error has occurred.");
}
- public boolean isShowingException() {
+ public synchronized boolean isShowingException() {
return dialog.errorOccurred();
}
- public boolean isOpened() {
+ public synchronized boolean isOpened() {
return dialog != null;
}
}
--
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.