Package gate

Examples of gate.ProcessingResource


            Factory.newFeatureMap(),
            "TestController");
    cont.add(gaz);
    // duplicate the controller and check what class the duplicated PR has
    SerialAnalyserController dup = (SerialAnalyserController)Factory.duplicate(cont);
    ProcessingResource res = (ProcessingResource)(dup.getPRs()).iterator().next();
    assertEquals(origclass, res.getClass().getName());
  }
View Full Code Here


              owner.setTemplateDirName(owner.getTemplateDirName(), gappFile.getAbsolutePath());
              owner.setOutputDirName(owner.getOutputDirName(), gappFile.getAbsolutePath());

              Iterator it = ((Controller)theTarget).getPRs().iterator();
              while(it.hasNext()) {
                ProcessingResource pr = (ProcessingResource)it.next();
                String resourceClassName = pr.getClass().getName();
                ResourceData rd = Gate.getCreoleRegister().get(resourceClassName);
                String helpURL = rd.getHelpURL();
                if(helpURL != null) {
                  if(!helpURL.startsWith("http://") && !helpURL.startsWith("file:")) {
                    helpURL = "http://gate.ac.uk/userguide/" + helpURL;
                  }
                  pr.getFeatures().put("%@helpURL", helpURL);
                }
              }
              Map<String, String> locations = fileChooser.getLocations();
              // When saving an application state, use paths relative to
              // GATE HOME for resources inside GATE HOME and warn about them.
View Full Code Here

TOP

Related Classes of gate.ProcessingResource

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.