Package org.aavso.tools.vstar.ui.dialog

Examples of org.aavso.tools.vstar.ui.dialog.DiscrepantReportDialog


      String auid = getLatestNewStarMessage().getStarInfo().getAuid();
      String name = ob.getName();
      int uniqueId = ob.getRecordNumber();

      DiscrepantReportDialog reportDialog = new DiscrepantReportDialog(
          auid, ob);

      if (!reportDialog.isCancelled()) {
        try {
          Mediator.getUI().setCursor(
              Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));

          Authenticator.getInstance().authenticate();

          String userName = ResourceAccessor.getLoginInfo()
              .getUserName();

          String editor = "vstar:" + userName;

          if (dialog != null) {
            dialog.setVisible(false);
          }

          // Create and submit the discrepant report.
          DiscrepantReport report = new DiscrepantReport(auid, name,
              uniqueId, editor, reportDialog.getComments());

          IDiscrepantReporter reporter = ZapperLogger.getInstance();

          reporter.lodge(report);
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.dialog.DiscrepantReportDialog

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.