Ignore:
Timestamp:
2009-12-28T00:16:04+01:00 (10 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/history/HistoryLoadTask.java

    r2512 r2689  
    55import static org.openstreetmap.josm.tools.I18n.tr;
    66
     7import java.awt.Component;
    78import java.io.IOException;
    89import java.util.Collection;
     
    2122import org.openstreetmap.josm.io.OsmServerHistoryReader;
    2223import org.openstreetmap.josm.io.OsmTransferException;
     24import org.openstreetmap.josm.tools.CheckParameterUtil;
    2325import org.xml.sax.SAXException;
    2426
     
    5153    public HistoryLoadTask() {
    5254        super(tr("Load history"), true);
     55        toLoad = new HashSet<PrimitiveId>();
     56    }
     57
     58    /**
     59     * Creates a new task
     60     *
     61     * @param parent the component to be used as reference to find the parent for {@see PleaseWaitDialog}.
     62     * Must not be null.
     63     * @throws IllegalArgumentException thrown if parent is null
     64     */
     65    public HistoryLoadTask(Component parent) {
     66        super(parent, tr("Load history"), true);
     67        CheckParameterUtil.ensureParameterNotNull(parent, "parent");
    5368        toLoad = new HashSet<PrimitiveId>();
    5469    }
Note: See TracChangeset for help on using the changeset viewer.