Changeset 2689 in josm for trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
- Timestamp:
- 28.12.2009 00:16:04 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r2613 r2689 2 2 package org.openstreetmap.josm.gui; 3 3 4 import java.awt.Component; 4 5 import java.awt.EventQueue; 5 6 import java.io.IOException; … … 12 13 import org.openstreetmap.josm.gui.progress.ProgressMonitor.CancelListener; 13 14 import org.openstreetmap.josm.io.OsmTransferException; 15 import org.openstreetmap.josm.tools.CheckParameterUtil; 14 16 import org.xml.sax.SAXException; 15 17 … … 46 48 public PleaseWaitRunnable(String title, boolean ignoreException) { 47 49 this(title, new PleaseWaitProgressMonitor(title), ignoreException); 50 } 51 52 /** 53 * Create the runnable object with a given message for the user 54 * 55 * @param parent the parent component for the please wait dialog. Must not be null. 56 * @param title message for the user 57 * @param ignoreException If true, exception will be propagated to calling code. If false then 58 * exception will be thrown directly in EDT. When this runnable is executed using executor framework 59 * then use false unless you read result of task (because exception will get lost if you don't) 60 * @throws IllegalArgumentException thrown if parent is null 61 */ 62 public PleaseWaitRunnable(Component parent, String title, boolean ignoreException) throws IllegalArgumentException{ 63 CheckParameterUtil.ensureParameterNotNull(parent, "parent"); 64 this.title = title; 65 this.progressMonitor = new PleaseWaitProgressMonitor(parent, title); 66 this.ignoreException = ignoreException; 48 67 } 49 68
Note: See TracChangeset
for help on using the changeset viewer.
