Package org.aavso.tools.vstar.ui.mediator.message

Examples of org.aavso.tools.vstar.ui.mediator.message.ProgressInfo


  }

  // Update the progress of the task by the specified number of steps.
  private void updateProgress(int steps) {
    mediator.getProgressNotifier().notifyListeners(
        new ProgressInfo(ProgressType.INCREMENT_PROGRESS, steps));
  }
View Full Code Here


    // Task begins: Number of lines in file and a portion for the light
    // curve plot.
    int plotPortion = (int) (analyser.getLineCount() * 0.2);

    this.getProgressNotifier().notifyListeners(
        new ProgressInfo(ProgressType.MAX_PROGRESS, analyser
            .getLineCount()
            + plotPortion));

    NewStarFromFileTask task = new NewStarFromFileTask(obsFile, analyser,
        plotPortion, isAdditiveLoad);
View Full Code Here

    try {
      this.getProgressNotifier().notifyListeners(
          ProgressInfo.START_PROGRESS);

      this.getProgressNotifier().notifyListeners(
          new ProgressInfo(ProgressType.MAX_PROGRESS, 10));

      NewStarFromDatabaseTask task = new NewStarFromDatabaseTask(
          starName, auid, minJD, maxJD, isAdditiveLoad);
      this.currTask = task;
      task.execute();
View Full Code Here

          meanObsTableModel);

      if (obsArtefactProgressAmount > 0) {
        // Update progress.
        getProgressNotifier().notifyListeners(
            new ProgressInfo(ProgressType.INCREMENT_PROGRESS,
                obsArtefactProgressAmount));
      }
    }

    if (!invalidObsList.isEmpty()) {
View Full Code Here

        this.getProgressNotifier().notifyListeners(
            ProgressInfo.START_PROGRESS);

        this.getProgressNotifier()
            .notifyListeners(
                new ProgressInfo(ProgressType.MAX_PROGRESS, obs
                    .size()));

        ObsListFileSaveTask task = new ObsListFileSaveTask(obs, path,
            this.getLatestNewStarMessage().getNewStarType(),
            delimiter);
View Full Code Here

          this.getProgressNotifier().notifyListeners(
              ProgressInfo.START_PROGRESS);

          this.getProgressNotifier().notifyListeners(
              new ProgressInfo(ProgressType.MAX_PROGRESS, obs
                  .size()));

          ObsListFileSaveTask task = new ObsListFileSaveTask(obs,
              outFile, this.getLatestNewStarMessage()
                  .getNewStarType(), obsListFileSaveDialog
View Full Code Here

          this.getProgressNotifier().notifyListeners(
              ProgressInfo.START_PROGRESS);

          this.getProgressNotifier().notifyListeners(
              new ProgressInfo(ProgressType.MAX_PROGRESS, obs
                  .size()));

          // We re-use the same observation list file save task as
          // above but specify simple file type to match the fact that
          // we are only going to save JD, magnitude, and uncertainty
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.mediator.message.ProgressInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.