Ignore:
Timestamp:
2009-12-28T00:16:04+01:00 (16 years ago)
Author:
Gubaer
Message:

new: Changeset Cache Manager for querying, downloading, browsing, and managing changesets within JOSM. See also Changeset Manager and Changeset Query Dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java

    r2613 r2689  
    22package org.openstreetmap.josm.gui;
    33
     4import java.awt.Component;
    45import java.awt.EventQueue;
    56import java.io.IOException;
     
    1213import org.openstreetmap.josm.gui.progress.ProgressMonitor.CancelListener;
    1314import org.openstreetmap.josm.io.OsmTransferException;
     15import org.openstreetmap.josm.tools.CheckParameterUtil;
    1416import org.xml.sax.SAXException;
    1517
     
    4648    public PleaseWaitRunnable(String title, boolean ignoreException) {
    4749        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;
    4867    }
    4968
Note: See TracChangeset for help on using the changeset viewer.