Package org.apache.uima.internal.util

Examples of org.apache.uima.internal.util.Timer.stop()


      handleException(e);
    } catch (NoClassDefFoundError e) {
      // We don't want to catch all errors, but some are ok.
      handleException(e);
    }
    time.stop();
    addRecentDescFile(descriptorFile);
    if (!success) {
      setStatusbarMessage("Failed to load AE specifier: " + descriptorFile.getName());
      this.reRunMenu.setText("Run AE");
      setAEStatusMessage();
View Full Code Here


    if (this.ae == null) {
      JOptionPane.showMessageDialog(this, "No AE loaded.", "Error", JOptionPane.ERROR_MESSAGE);
      return;
    }
    internalRunAE(doCasReset);
    timer.stop();
    setStatusbarMessage("Done running AE " + this.ae.getAnalysisEngineMetaData().getName() + " in "
        + timer.getTimeSpan() + ".");
    updateIndexTree(true);
    this.allAnnotViewerItem.setEnabled(false);
    this.isDirty = false;
View Full Code Here

          MainFrame.this.fileOpenDir = MainFrame.this.textFile.getParentFile();
        }
        Timer time = new Timer();
        time.start();
        loadFile();
        time.stop();
        resetTrees();
        MainFrame.this.fileSaveItem.setEnabled(true);
        MainFrame.this.undoMgr.discardAllEdits();
        setFileStatusMessage();
        setStatusbarMessage("Done loading text file " + MainFrame.this.textFile.getName() + " in "
View Full Code Here

            SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
            XCASDeserializer xcasDeserializer = new XCASDeserializer(MainFrame.this.cas
                .getTypeSystem());
            MainFrame.this.cas.reset();
            parser.parse(xcasFile, xcasDeserializer.getXCASHandler(MainFrame.this.cas));
            time.stop();
            // Populate sofa combo box with the names of all text
            // Sofas in the CAS
            MainFrame.this.disableSofaListener = true;
            String currentView = (String) MainFrame.this.sofaSelectionComboBox.getSelectedItem();
            MainFrame.this.sofaSelectionComboBox.removeAllItems();
View Full Code Here

            MainFrame.this.reRunMenu.setEnabled(false);
            MainFrame.this.textArea.setText("");
            MainFrame.this.resetTrees();
            MainFrame.this.tsViewerItem.setEnabled(true);
            MainFrame.this.xcasReadItem.setEnabled(true);
            time.stop();
            setStatusbarMessage("Done loading type system file in " + time.getTimeSpan() + ".");
          } catch (Exception e) {
            e.printStackTrace();
            handleException(e);
          }
View Full Code Here

          SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
          XmiCasDeserializer xmiCasDeserializer = new XmiCasDeserializer(this.main.getCas()
              .getTypeSystem());
          this.main.getCas().reset();
          parser.parse(xmiCasFile, xmiCasDeserializer.getXmiCasHandler(this.main.getCas()));
          time.stop();
          this.main.handleSofas();

          this.main.setTitle("XMI CAS");
          this.main.updateIndexTree(true);
          this.main.setRunOnCasEnabled();
View Full Code Here

    if (this.ae == null) {
      JOptionPane.showMessageDialog(this, "No AE loaded.", "Error", JOptionPane.ERROR_MESSAGE);
      return;
    }
    internalRunAE(doCasReset);
    timer.stop();
    setStatusbarMessage("Done running AE " + this.ae.getAnalysisEngineMetaData().getName() + " in "
        + timer.getTimeSpan() + ".");
    updateIndexTree(true);
    this.allAnnotationViewerItem.setEnabled(false);
    this.isDirty = false;
View Full Code Here

      handleException(e);
    } catch (NoClassDefFoundError e) {
      // We don't want to catch all errors, but some are ok.
      handleException(e);
    }
    time.stop();
    addRecentDescFile(descriptorFile);
    if (!success) {
      setStatusbarMessage("Failed to load AE specifier: " + descriptorFile.getName());
      this.reRunMenu.setText("Run AE");
      setAEStatusMessage();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.