Class ChangesetHeaderDownloadTask

    • Constructor Detail

      • ChangesetHeaderDownloadTask

        public ChangesetHeaderDownloadTask​(java.util.Collection<java.lang.Integer> ids)
        Creates the download task for a collection of changeset ids. Uses a PleaseWaitDialog whose parent is MainApplication.getMainFrame(). Null ids or or ids <= 0 in the id collection are ignored.
        Parameters:
        ids - the collection of ids. Empty collection assumed if null.
      • ChangesetHeaderDownloadTask

        public ChangesetHeaderDownloadTask​(java.awt.Component dialogParent,
                                           java.util.Collection<java.lang.Integer> ids)
        Creates the download task for a collection of changeset ids. Uses a PleaseWaitDialog whose parent is the parent window of dialogParent. Null ids or or ids <= 0 in the id collection are ignored.
        Parameters:
        dialogParent - the parent reference component for the PleaseWaitDialog. Must not be null.
        ids - the collection of ids. Empty collection assumed if null.
        Throws:
        java.lang.IllegalArgumentException - if dialogParent is null
      • ChangesetHeaderDownloadTask

        public ChangesetHeaderDownloadTask​(java.awt.Component dialogParent,
                                           java.util.Collection<java.lang.Integer> ids,
                                           boolean includeDiscussion)
        Creates the download task for a collection of changeset ids, with possibility to download changeset discussion. Uses a PleaseWaitDialog whose parent is the parent window of dialogParent. Null ids or or ids <= 0 in the id collection are ignored.
        Parameters:
        dialogParent - the parent reference component for the PleaseWaitDialog. Must not be null.
        ids - the collection of ids. Empty collection assumed if null.
        includeDiscussion - determines if discussion comments must be downloaded or not
        Throws:
        java.lang.IllegalArgumentException - if dialogParent is null
        Since:
        7704
    • Method Detail

      • buildTaskForChangesets

        public static ChangesetHeaderDownloadTask buildTaskForChangesets​(java.util.Collection<Changeset> changesets)
        Builds a download task from for a collection of changesets. Ignores null values and changesets with Changeset.isNew() == true.
        Parameters:
        changesets - the collection of changesets. Assumes an empty collection if null.
        Returns:
        the download task
      • buildTaskForChangesets

        public static ChangesetHeaderDownloadTask buildTaskForChangesets​(java.awt.Component parent,
                                                                         java.util.Collection<Changeset> changesets)
        Builds a download task from for a collection of changesets. Ignores null values and changesets with Changeset.isNew() == true.
        Parameters:
        parent - the parent component relative to which the PleaseWaitDialog is displayed. Must not be null.
        changesets - the collection of changesets. Assumes an empty collection if null.
        Returns:
        the download task
        Throws:
        java.lang.NullPointerException - if parent is null