Package org.apache.uima.internal.util

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


    setWaitCursor();
    if (descriptorFile.exists() && descriptorFile.isFile()) {
      this.annotOpenDir = descriptorFile.getParentFile();
    }
    Timer time = new Timer();
    time.start();
    boolean success = false;
    try {
      success = setupAE(descriptorFile);
    } catch (Exception e) {
      handleException(e);
View Full Code Here


  }

  public void runAE(boolean doCasReset) {
    setStatusbarMessage("Running Annotator.");
    Timer timer = new Timer();
    timer.start();
    if (this.ae == null) {
      JOptionPane.showMessageDialog(this, "No AE loaded.", "Error", JOptionPane.ERROR_MESSAGE);
      return;
    }
    internalRunAE(doCasReset);
View Full Code Here

        MainFrame.this.textFile = fileChooser.getSelectedFile();
        if (MainFrame.this.textFile.exists() && MainFrame.this.textFile.isFile()) {
          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();
View Full Code Here

        File xcasFile = fileChooser.getSelectedFile();
        if (xcasFile.exists() && xcasFile.isFile()) {
          try {
            MainFrame.this.xcasFileOpenDir = xcasFile.getParentFile();
            Timer time = new Timer();
            time.start();
            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));
View Full Code Here

        File tsFile = fileChooser.getSelectedFile();
        if (tsFile.exists() && tsFile.isFile()) {
          try {
            MainFrame.this.xcasFileOpenDir = tsFile.getParentFile();
            Timer time = new Timer();
            time.start();
            Object descriptor = UIMAFramework.getXMLParser().parse(new XMLInputSource(tsFile));
            // instantiate CAS to get type system. Also build style
            // map file if there is none.
            TypeSystemDescription tsDesc = (TypeSystemDescription) descriptor;
            tsDesc.resolveImports();
View Full Code Here

      File xmiCasFile = fileChooser.getSelectedFile();
      if (xmiCasFile.exists() && xmiCasFile.isFile()) {
        try {
          this.main.setXcasFileOpenDir(xmiCasFile.getParentFile());
          Timer time = new Timer();
          time.start();
          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()));
View Full Code Here

  }

  public void runAE(boolean doCasReset) {
    setStatusbarMessage("Running Annotator.");
    Timer timer = new Timer();
    timer.start();
    if (this.ae == null) {
      JOptionPane.showMessageDialog(this, "No AE loaded.", "Error", JOptionPane.ERROR_MESSAGE);
      return;
    }
    internalRunAE(doCasReset);
View Full Code Here

    setWaitCursor();
    if (descriptorFile.exists() && descriptorFile.isFile()) {
      this.annotOpenDir = descriptorFile.getParentFile();
    }
    Timer time = new Timer();
    time.start();
    boolean success = false;
    try {
      success = setupAE(descriptorFile);
    } catch (Exception e) {
      handleException(e);
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.