[Schmitzm-commits] r1262 - trunk/src/skrueger/swing/swingworker
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 11 14:35:49 CET 2010
Author: alfonx
Date: 2010-11-11 14:35:48 +0100 (Thu, 11 Nov 2010)
New Revision: 1262
Modified:
trunk/src/skrueger/swing/swingworker/AtlasSwingWorker.java
Log:
Modified: trunk/src/skrueger/swing/swingworker/AtlasSwingWorker.java
===================================================================
--- trunk/src/skrueger/swing/swingworker/AtlasSwingWorker.java 2010-11-11 13:12:50 UTC (rev 1261)
+++ trunk/src/skrueger/swing/swingworker/AtlasSwingWorker.java 2010-11-11 13:35:48 UTC (rev 1262)
@@ -21,7 +21,6 @@
import org.apache.log4j.Logger;
-
public abstract class AtlasSwingWorker<K> extends SwingWorker<K, String> {
protected Logger LOGGER = Logger.getLogger(AtlasSwingWorker.class);
@@ -92,4 +91,18 @@
return null;
}
+ public K executeModalNoExForCancel() {
+ try {
+ execute();
+ statusDialog.startModal();
+ return get();
+ } catch (CancellationException ce) {
+ } catch (Exception e) {
+ LOGGER.error("dialog modal execution failed:", e);
+ statusDialog.exceptionOccurred(e);
+ statusDialog.complete();
+ }
+ return null;
+ }
+
}
More information about the Schmitzm-commits
mailing list