/* (non-Javadoc)
   * @see org.openide.util.actions.NodeAction#performAction(org.openide.nodes.Node[])
   */
  @Override
  protected void performAction(Node[] nodes) {
    // context.

    if (null != nodes) {
      for (Node currentnode : nodes) {
        DataObject dObj = currentnode.getLookup().lookup(DataObject.class);
        // Project pRoot = currentnode.getLookup().lookup(Project.class);
        Project pRoot = Te2mWizardBase.findProjectThatOwnsNode(currentnode);
        if (null != dObj) {
          determineSelectedClass(dObj);
          FileObject fo = dObj.getPrimaryFile();

          JavaSource jsource = JavaSource.forFileObject(fo);

          if (jsource == null) {
            StatusDisplayer.getDefault().setStatusText("Not a Java file: " + fo.getPath());
          } else {
            StatusDisplayer.getDefault().setStatusText("Hurray! A Java file: " + fo.getPath());

            executeWizard(currentnode);
          }
        }
      }
    }
  }
  private void saveButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_saveButtonActionPerformed
    PreviewUIController previewController = Lookup.getDefault().lookup(PreviewUIController.class);
    PreviewPreset preset = previewController.getModel().getCurrentPreset();
    boolean saved = false;
    if (isDefaultPreset(preset)) {
      NotifyDescriptor.InputLine question =
          new NotifyDescriptor.InputLine(
              NbBundle.getMessage(
                  PreviewSettingsTopComponent.class,
                  "PreviewSettingsTopComponent.savePreset.input"),
              NbBundle.getMessage(
                  PreviewSettingsTopComponent.class,
                  "PreviewSettingsTopComponent.savePreset.input.title"));
      if (DialogDisplayer.getDefault().notify(question) == NotifyDescriptor.OK_OPTION) {
        String input = question.getInputText();
        if (input != null && !input.isEmpty()) {
          previewController.savePreset(input);
          saved = true;
          StatusDisplayer.getDefault()
              .setStatusText(
                  NbBundle.getMessage(
                      PreviewSettingsTopComponent.class,
                      "PreviewSettingsTopComponent.savePreset.status",
                      input));
        }
      }
    } else {
      previewController.savePreset(preset.getName());
      saved = true;
      StatusDisplayer.getDefault()
          .setStatusText(
              NbBundle.getMessage(
                  PreviewSettingsTopComponent.class,
                  "PreviewSettingsTopComponent.savePreset.status",
                  preset.getName()));
    }

    if (saved) {
      // refresh combo
      DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel();
      defaultPresetLimit = 0;
      for (PreviewPreset p : previewController.getDefaultPresets()) {
        comboBoxModel.addElement(p);
        defaultPresetLimit++;
      }
      PreviewPreset[] userPresets = previewController.getUserPresets();
      if (userPresets.length > 0) {
        comboBoxModel.addElement(NO_SELECTION);
        for (PreviewPreset p : userPresets) {
          comboBoxModel.addElement(p);
        }
      }
      comboBoxModel.setSelectedItem(previewController.getModel().getCurrentPreset());
      presetComboBox.setModel(comboBoxModel);
    }
  } // GEN-LAST:event_saveButtonActionPerformed
 private void setStatusError(String msg) {
   Message message =
       StatusDisplayer.getDefault()
           .setStatusText(
               "<html>Process: " + msg + "</html>", StatusDisplayer.IMPORTANCE_ERROR_HIGHLIGHT);
   message.clear(240000);
 }
 private void setStatus(String msg) {
   Message message =
       StatusDisplayer.getDefault()
           .setStatusText(
               "<html>Process: " + msg + "</html>", StatusDisplayer.IMPORTANCE_FIND_OR_REPLACE);
   message.clear(30000);
 }
  /**
   * Determines the selected class.
   *
   * @param dObj the d obj
   * @throws IllegalArgumentException the illegal argument exception
   */
  protected final void determineSelectedClass(DataObject dObj) throws IllegalArgumentException {
    if (null != dObj) {

      FileObject fo = dObj.getPrimaryFile();

      JavaSource jsource = JavaSource.forFileObject(fo);

      if (jsource == null) {
        StatusDisplayer.getDefault().setStatusText("Not a Java file: " + fo.getPath());
      } else {
        // StatusDisplayer.getDefault().setStatusText("Hurray! A Java file: " + fo.getPath());

        try {
          jsource.runUserActionTask(
              (CompilationController p) -> {
                p.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);
                CompilationUnitTree tree = p.getCompilationUnit();
                MemberVisitor scanner = new MemberVisitor(p);
                scanner.scan(p.getCompilationUnit(), null);
                te = scanner.getTypeElement();
                Document document = p.getDocument();
              },
              true);
        } catch (IOException ex) {
          Exceptions.printStackTrace(ex);
        }
      }
    }
  }
示例#6
0
 @Override
 public void publish(LogRecord record) {
   if (!isLoggable(record)) {
     return;
   }
   StatusDisplayer.getDefault().setStatusText(getFormatter().formatMessage(record));
 }
  @Override
  public void actionPerformed(ActionEvent e) {
    StatusDisplayer.getDefault().setStatusText(BlueSystem.getString("message.generatingCSD"));

    BlueData data = BlueProjectManager.getInstance().getCurrentBlueData();

    try {
      float startTime = data.getRenderStartTime();
      float endTime = data.getRenderEndTime();

      /*
       * try { tempStart = Float.parseFloat(playStartText.getText()); }
       * catch(NumberFormatException nfe) { tempStart = 0.0f;
       * playStartText.setText(Float.toString(tempStart));
       * JOptionPane.showMessageDialog(null, BlueSystem
       * .getString("message.generateScore.startingFromZero")); }
       */

      CsdRenderResult result =
          CSDRenderService.getDefault().generateCSD(data, startTime, endTime, false, false);

      String csd = result.getCsdText();

      InfoDialog.showInformationDialog(
          WindowManager.getDefault().getMainWindow(),
          csd,
          BlueSystem.getString("message.generateScore.csdTest"));
    } catch (Exception ex) {
      ExceptionDialog.showExceptionDialog(WindowManager.getDefault().getMainWindow(), ex);
      throw new RuntimeException("CSDRender Failed");
    }
  }
 @Override
 public void actionPerformed(ActionEvent e) {
   StatusDisplayer.getDefault()
       .setStatusText(
           "OK button clicked for " + project.getProjectDirectory().getName() + " customizer!");
   project.getProperties().device().write();
   project.getProperties().write();
 }
 // giannisk
 private void deleteTargetConnection(Widget sourceWidget) {
   ReviewCorrespondences review = new ReviewCorrespondences();
   review.removeCorrespondence(caratteristiche.getValueCorrespondence());
   caratteristiche.setTargetWidget(null);
   ConnectionWidget connection = new ConnectionWidget(sourceWidget.getScene());
   connection.removeFromParent();
   StatusDisplayer.getDefault()
       .setStatusText(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION));
 }
示例#10
0
 /**
  * Save F1MapEntries to disk. Uses the libf1 library to save all F1Entry objects to disk.
  *
  * @param file
  */
 @Override
 public void save() {
   try {
     F1Mapper.saveMapFile(device, mapFile);
   } catch (FileNotFoundException ex) {
     Logger.getLogger(F1Provider.class.getName()).log(Level.WARN, ex);
     StatusDisplayer.getDefault().setStatusText(ex.getMessage());
   }
 }
 /* (non-Javadoc)
  * @see com.sun.source.util.TreeScanner#visitClass(com.sun.source.tree.ClassTree, java.lang.Object)
  */
 @Override
 public Void visitClass(ClassTree t, Void v) {
   Element el = info.getTrees().getElement(getCurrentPath());
   if (el == null) {
     StatusDisplayer.getDefault().setStatusText("Cannot resolve class!");
   } else {
     typeElement = (TypeElement) el;
   }
   return null;
 }
  @Override
  public void actionPerformed(ActionEvent e) {
    List<WizardDescriptor.Panel<WizardDescriptor>> panels =
        new ArrayList<WizardDescriptor.Panel<WizardDescriptor>>();
    panels.add(new NumberWizardPanel1());
    panels.add(new NumberWizardPanel2());
    panels.add(new NumberWizardPanel3());
    String[] steps = new String[panels.size()];
    for (int i = 0; i < panels.size(); i++) {
      Component c = panels.get(i).getComponent();
      // Default step name to component name of panel.
      steps[i] = c.getName();
      if (c instanceof JComponent) { // assume Swing components
        JComponent jc = (JComponent) c;
        jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
        jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
        jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, true);
        jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, true);
        jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, true);
      }
    }
    WizardDescriptor wiz =
        new WizardDescriptor(new WizardDescriptor.ArrayIterator<WizardDescriptor>(panels));
    // {0} will be replaced by WizardDesriptor.Panel.getComponent().getName()
    wiz.setTitleFormat(new MessageFormat("{0}"));
    wiz.setTitle(Bundle.CTL_NumberDialogTitle());
    if (DialogDisplayer.getDefault().notify(wiz) == WizardDescriptor.FINISH_OPTION) {
      // do something
      StatusDisplayer.getDefault().setStatusText("Wizard Finished");

      // retrieve and display the numbers
      StringBuilder message = new StringBuilder("Number Sequence =  \n(");
      message.append(wiz.getProperty(NumberVisualPanel1.PROP_FIRST_NUMBER)).append(", ");
      message.append(wiz.getProperty(NumberVisualPanel2.PROP_SECOND_NUMBER)).append(", ");
      message.append(wiz.getProperty(NumberVisualPanel3.PROP_THIRD_NUMBER)).append(")");

      DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message.toString()));

    } else {
      StatusDisplayer.getDefault().setStatusText("Wizard Canceled");
    }
  }
示例#13
0
 @Override
 public boolean play() {
   if (!isPlaying) {
     playMode = new F1PlayMode(device);
     try {
       playMode.start();
       isPlaying = true;
       return true;
     } catch (Exception ex) {
       StatusDisplayer.getDefault().setStatusText(ex.getMessage());
       Logger.getLogger(F1Provider.class.getName()).log(Level.WARN, ex);
     }
   }
   return false;
 }
示例#14
0
 private void saveTGDs(MappingTask mappingTask, File file) {
   try {
     DAOMappingTaskTgds daoTgds = new DAOMappingTaskTgds();
     daoTgds.saveMappingTask(mappingTask, file.getAbsolutePath(), true);
     StatusDisplayer.getDefault()
         .setStatusText(NbBundle.getMessage(Costanti.class, Costanti.EXPORT_TGDS_OK));
   } catch (DAOException ex) {
     DialogDisplayer.getDefault()
         .notify(
             new NotifyDescriptor.Message(
                 NbBundle.getMessage(Costanti.class, Costanti.SAVE_ERROR)
                     + " : "
                     + ex.getMessage(),
                 DialogDescriptor.ERROR_MESSAGE));
     logger.error(ex);
   }
   continua = false;
 }
 @NbBundle.Messages({
   "CommentAction.message.comment.added=Comment has been added",
   "CommentAction.message.comment.added.fail=Comment has not been added."
 })
 protected Comment comment(String comment) {
   GitHubIssuePanel p = getPanel();
   if (StringUtils.isEmpty(comment)) {
     return null;
   }
   Comment newComment = GitHubIssueSupport.comment(p.getIssue(), comment);
   if (newComment != null) {
     p.setNewComment(""); // NOI18N
     StatusDisplayer.getDefault().setStatusText(Bundle.CommentAction_message_comment_added());
   } else {
     UiUtils.showErrorDialog(Bundle.CommentAction_message_comment_added_fail());
   }
   return newComment;
 }
    @Override
    protected Void doInBackground() throws Exception {
      Stopwatch stopwatch = Stopwatch.createStarted();
      RevisionAnalysisDocument doc = getDocument().getElement();
      doc.setTsCollection(inputList.getTsCollection().makeCopy());
      doc.setSpecification(curSpec.clone());
      doc.getResults();

      StatusDisplayer.getDefault()
          .setStatusText(
              "Processed "
                  + inputList.getTsCollection().getCount()
                  + " items in "
                  + stopwatch.stop().toString());
      if (!active) {
        requestAttention(false);
      }

      return null;
    }
 private void writeColumns(Clusterer clusterer) {
   Cluster[] clusters = clusterer.getClusters();
   if (clusters != null && clusters.length > 0) {
     ClustererBuilder builder = getBuilder(clusterer);
     AttributeModel am = Lookup.getDefault().lookup(AttributeController.class).getModel();
     String id = "clustering_" + builder.getName();
     String title = "Clustering (" + builder.getName() + ")";
     AttributeColumn col = am.getNodeTable().getColumn(id);
     if (col == null) {
       col =
           am.getNodeTable()
               .addColumn(id, title, AttributeType.INT, AttributeOrigin.COMPUTED, null);
       StatusDisplayer.getDefault()
           .setStatusText("A new column \"" + title + "\" has been created");
     }
     for (int i = 0; i < clusters.length; i++) {
       Integer clusterId = new Integer(i);
       for (Node n : clusters[i].getNodes()) {
         n.getNodeData().getAttributes().setValue(col.getIndex(), clusterId);
       }
     }
   }
 }
 void displayStatusText(String statusText) {
   StatusDisplayer.getDefault().setStatusText(statusText);
 }
  public static synchronized ServiceGeneratorResult generate(final E2EDataObject dataObject) {
    if (dataObject.getServerProject() == null) {
      final NotifyDescriptor.Message dd =
          new NotifyDescriptor.Message(
              NbBundle.getMessage(
                  E2EDataObject.class,
                  "ERR_ServerProjectNotOpened", // NOI18N
                  dataObject.getConfiguration().getServerConfigutation().getProjectName()));
      DialogDisplayer.getDefault().notify(dd);
      if (Util.openProject(dataObject.getConfiguration().getServerConfigutation().getProjectPath())
          == null) {
        // It is OK don't notify user here. All notifications
        // are already inside <code>openProject</code> method
        return null;
      }
    }

    // Call save before generate
    final SaveCookie saveCookie = dataObject.getCookie(SaveCookie.class);
    if (saveCookie != null) {
      try {
        saveCookie.save();
      } catch (IOException ex) {
        ErrorManager.getDefault().notify(ex);
      }
    }

    // Get configuration
    final Configuration config = dataObject.getConfiguration();
    if (config == null) {
      final NotifyDescriptor.Message dd =
          new NotifyDescriptor.Message(
              NbBundle.getMessage(E2EDataObject.class, "ERR_ConfigurationFileCorrupted")); // NOI18N
      DialogDisplayer.getDefault().notify(dd);
      return null;
    }

    if (Configuration.WSDLCLASS_TYPE.equals(config.getServiceType())) {
      final FileObject fo =
          dataObject
              .getServerProject()
              .getProjectDirectory()
              .getFileObject("build/generated/wsimport/"); // NOI18N
      if (fo == null) {
        DialogDisplayer.getDefault()
            .notify(
                new NotifyDescriptor.Message(
                    NbBundle.getMessage(
                        ConnectionGenerator.class, "MSG_WebProjectNotBuilt"))); // NOI18N
        return null;
      }
    }

    /*
     * All failures notifications was done via dialog windows.
     * Starting now logging will be done via  OutputLogger class.
     */

    final ProgressHandle ph =
        ProgressHandleFactory.createHandle(
            NbBundle.getMessage(ConnectionGenerator.class, "MSG_GeneratingJavonBridge"), // NOI18N
            new AbstractAction() {
              public void actionPerformed(ActionEvent e) {
                OutputLogger.getInstance().open();
              }
            });
    ph.start();
    ph.switchToIndeterminate();
    String message =
        NbBundle.getMessage(ConnectionGenerator.class, "MSG_GeneratingProxyStubs"); // NOI18N
    ph.progress(message);
    OutputLogger.getInstance().log(message);
    // FIXME: check for proper type
    //        config.getServices();
    //
    if (Configuration.WSDLCLASS_TYPE.equals(config.getServiceType())) {
      ph.progress(NbBundle.getMessage(ConnectionGenerator.class, "MSG_GeneratingProxyStubs"));
      final ProxyGenerator pg = new ProxyGenerator(dataObject);
      final String className = pg.generate();
      if (className == null) {
        ph.finish();
        StatusDisplayer.getDefault()
            .setStatusText(NbBundle.getMessage(ConnectionGenerator.class, "MSG_Failure")); // NOI18N
        return null;
      }
      config.getServices().get(0).getData().get(0).setProxyClassType(className);
    }
    //        JavonOutput[] outputs;
    //        Type type = null;
    //
    //        final InputOutput io = IOProvider.getDefault().getIO(
    //                NbBundle.getMessage( ConnectionGenerator.class, "LBL_JavonTab" ) // NOI18N
    //                , true);
    //        final OutputWriter ow = io.getOut();
    try {
      String scanning =
          NbBundle.getMessage(ConnectionGenerator.class, "MSG_ScanningDataStructures"); // NOI18N
      ph.progress(scanning);
      OutputLogger.getInstance().log(scanning);

      final JavonMappingImpl mapping = dataObject.getMapping();
      if (Configuration.WSDLCLASS_TYPE.equals(config.getServiceType())) {
        mapping.setProperty("serviceType", "WSDL");
      } else {
        mapping.setProperty("serviceType", "CLASS");
      }
      //            //ph.progress(70);
      String creating =
          NbBundle.getMessage(ConnectionGenerator.class, "MSG_CreatingJavaFiles"); // NOI18N
      ph.progress(creating);
      OutputLogger.getInstance().log(creating);
      //
      Javon javon = new Javon(mapping);
      if (javon.generate(ph)) {
        StatusDisplayer.getDefault()
            .setStatusText(
                NbBundle.getMessage(ConnectionGenerator.class, "MSG_SuccessGenerated")); // NOI18N
        OutputLogger.getInstance()
            .log(NbBundle.getMessage(ConnectionGenerator.class, "TXT_GenerationSuccess")); // NOI18N
      } else {
        StatusDisplayer.getDefault()
            .setStatusText(NbBundle.getMessage(ConnectionGenerator.class, "MSG_Failure")); // NOI18N
        OutputLogger.getInstance()
            .log(
                NbBundle.getMessage(
                    ConnectionGenerator.class, "TXT_GenerationUnsuccess")); // NOI18N
      }
      //            Streams.setOut(ow);
      //            Streams.setErr(ow);
      //            outputs = new Main().run( mapping, "" ); // NOI18N
      //
      //            for( int j = 0; j < outputs.length; j++ ) {
      //                final String list[] = outputs[j].getCreatedFiles();
      //                for( int i = 0; i < list.length; i++ ) {
      //                    final File f = new File(list[i]);
      //                    final FileObject fo = FileUtil.toFileObject(FileUtil.normalizeFile(f));
      //                    fo.refresh();
      //                    JavaModel.getResource(fo);
      //                }
      //            }
      //            //add servlet to container
      //            Util.addServletToWebProject(dataObject.getServerProject(),
      // dataObject.getConfiguration().getServerConfigutation().getClassDescriptor().getType());
      //
      //            final ClassDescriptor clientClassDescriptor =
      // dataObject.getConfiguration().getClientConfiguration().getClassDescriptor();
      //            final Sources s = ProjectUtils.getSources(dataObject.getClientProject());
      //            final SourceGroup sourceGroup = Util.getPreselectedGroup(
      //                    s.getSourceGroups( JavaProjectConstants.SOURCES_TYPE_JAVA ),
      //                    clientClassDescriptor.getLocation());
      //            final FileObject srcDirectory = sourceGroup.getRootFolder();
      //            final ClassPath cp = ClassPath.getClassPath(srcDirectory,ClassPath.SOURCE);
      //            JavaModel.getJavaRepository().beginTrans(false);
      //            try {
      //                JavaModel.setClassPath(cp);
      //                type =
      // JavaModel.getDefaultExtent().getType().resolve(clientClassDescriptor.getType());
      //            } catch (Exception e){
      //                ErrorManager.getDefault().notify(e);
      //            } finally {
      //                JavaModel.getJavaRepository().endTrans();
      //            }
    } finally {
      ph.finish();
      OutputLogger.getInstance().close();
    }
    //        if (type != null){
    //            //ow.println("Run / Redeploy Web Project to get changes reflected!");
    //            StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(
    // ConnectionGenerator.class, "MSG_SuccessGenerated" )); // NOI18N
    //        } else {
    //            StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(
    // ConnectionGenerator.class, "MSG_Failure" )); // NOI18N
    //            return null;
    //        }
    //        final JavaClass resultClass = (JavaClass)type;
    //        final List<Feature> features = resultClass.getFeatures();
    //        final List<Method> methods = new ArrayList<Method>();
    //        for ( final Feature elem : features ) {
    //            if (elem instanceof Method){
    //                final Method m = (Method)elem;
    //                if ("getGroupedResults".equals(m.getName())){ //NOI18N //not supported
    //                    continue;
    //                }
    //                if (m.getName().endsWith("Grouped")){ //NOI18N //not supported
    //                    continue;
    //                }
    //                if ( Modifier.isPublic(m.getModifiers()) ){
    //                    methods.add(m);
    //                }
    //            }
    //        }
    //        return new ServiceGeneratorResult(resultClass,
    //                methods.toArray(new Method[methods.size()]),
    //                Util.getServerURL(dataObject.getServerProject(),
    // dataObject.getConfiguration()));
    return null;
  }
示例#20
0
 private void showMsg(String msg) {
   StatusDisplayer.getDefault().setStatusText(msg);
 }
示例#21
0
 public void mouseExited(MouseEvent e) {
   StatusDisplayer.getDefault().setStatusText("");
 }
  private void finishImport(Container[] containers) {
    Report finalReport = new Report();
    for (Container container : containers) {
      if (container.verify()) {
        Report report = container.getReport();
        report.close();
        finalReport.append(report);
      } else {
        // TODO
      }
    }
    finalReport.close();

    // Report panel
    ReportPanel reportPanel = new ReportPanel();
    reportPanel.setData(finalReport, containers);
    DialogDescriptor dd =
        new DialogDescriptor(
            reportPanel, NbBundle.getMessage(DesktopImportControllerUI.class, "ReportPanel.title"));
    Object response = DialogDisplayer.getDefault().notify(dd);
    reportPanel.destroy();
    finalReport.clean();
    for (Container c : containers) {
      c.getReport().clean();
    }
    if (!response.equals(NotifyDescriptor.OK_OPTION)) {
      return;
    }
    final Processor processor = reportPanel.getProcessor();

    // Project
    Workspace workspace = null;
    ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
    ProjectControllerUI pcui = Lookup.getDefault().lookup(ProjectControllerUI.class);
    if (pc.getCurrentProject() == null) {
      pcui.newProject();
      workspace = pc.getCurrentWorkspace();
    }

    // Process
    final ProcessorUI pui = getProcessorUI(processor);
    final ValidResult validResult = new ValidResult();
    if (pui != null) {
      try {
        final JPanel panel = pui.getPanel();
        if (panel != null) {
          SwingUtilities.invokeAndWait(
              new Runnable() {
                @Override
                public void run() {
                  String title =
                      NbBundle.getMessage(
                          DesktopImportControllerUI.class,
                          "DesktopImportControllerUI.processor.ui.dialog.title");

                  pui.setup(processor);
                  final DialogDescriptor dd2 = new DialogDescriptor(panel, title);
                  if (panel instanceof ValidationPanel) {
                    ValidationPanel vp = (ValidationPanel) panel;
                    vp.addChangeListener(
                        new ChangeListener() {
                          @Override
                          public void stateChanged(ChangeEvent e) {
                            dd2.setValid(!((ValidationPanel) e.getSource()).isProblem());
                          }
                        });
                    dd2.setValid(!vp.isProblem());
                  }
                  Object result = DialogDisplayer.getDefault().notify(dd2);
                  if (result.equals(NotifyDescriptor.CANCEL_OPTION)
                      || result.equals(NotifyDescriptor.CLOSED_OPTION)) {
                    validResult.setResult(false);
                  } else {
                    pui.unsetup(); // true
                    validResult.setResult(true);
                  }
                }
              });
        }
      } catch (InterruptedException ex) {
        Exceptions.printStackTrace(ex);
      } catch (InvocationTargetException ex) {
        Exceptions.printStackTrace(ex);
      }
    }
    if (validResult.isResult()) {
      controller.process(containers, processor, workspace);

      // StatusLine notify
      StatusDisplayer.getDefault()
          .setStatusText(
              NbBundle.getMessage(
                  DesktopImportControllerUI.class,
                  "DesktopImportControllerUI.status.multiImportSuccess",
                  containers.length));
    }
  }
 @Override
 public void reformat() throws BadLocationException {
   StatusDisplayer.getDefault().setStatusText("We will format this now...");
 }
示例#24
0
 public void mouseEntered(MouseEvent e) {
   StatusDisplayer.getDefault().setStatusText(STOCK_SCAN_PRO_URL);
 }