Examples of Tool


Examples of com.volantis.map.ics.imageprocessor.tool.Tool

public class PipelineTestCase extends TestCase {

    public void testProcess() throws Exception {
        final boolean[] processed = new boolean[]{false, false};
        Tool tool1 = new Tool() {
            public RenderedOp[] process(RenderedOp[] ops, ObjectParameters params)
                throws ToolException {
                processed[0] = true;
                return null;
            }
        };
        Tool tool2 = new Tool() {
            public RenderedOp[] process(RenderedOp[] ops, ObjectParameters params)
                throws ToolException {
                processed[1] = true;
                return null;
            }
View Full Code Here

Examples of edu.harvard.hul.ois.fits.tools.Tool

   */
  private List<ToolOutput> cullResults(List<ToolOutput> results) {
    List<ToolOutput> newResults = new ArrayList<ToolOutput>();
    for(ToolOutput result : results) {
      if(result != null) {
        Tool t = result.getTool();
        //if the tool can't identify files, or if it can and all identities are good
        if(!t.canIdentify() || (t.canIdentify() && allIdentitiesAreGood(result))) {
          newResults.add(result);
        }     
      }
    }
    return newResults;
View Full Code Here

Examples of eu.planets_project.services.datatypes.Tool

    /**
     * @return
     */
    public String getToolSummary() {
        Tool st = null;
        if( sd != null )
            st = sd.getTool();
        if( sr != null )
            st = sr.getServiceDescription().getTool();
        if( st == null )
            return null;
        // Return a tool description;
        String desc = "";
        if( st.getName() != null ) {
            desc += st.getName();
            if( st.getVersion() != null ) {
                desc += " "+st.getVersion();
            }
        } else {
            if( st.getIdentifier() != null ) {
                desc += st.getIdentifier().toString();
            }
        }
        return desc;
    }
View Full Code Here

Examples of javax.tools.Tool

import javax.tools.ToolProvider;
import static javax.lang.model.SourceVersion.*;

public class T6395981 {
    public static void main(String... args) {
        Tool compiler = ToolProvider.getSystemJavaCompiler();
        Set<SourceVersion> expected = EnumSet.noneOf(SourceVersion.class);
        for (String arg : args)
            expected.add(SourceVersion.valueOf(arg));
        Set<SourceVersion> found = compiler.getSourceVersions();
        Set<SourceVersion> notExpected = EnumSet.copyOf(found);
        for (SourceVersion version : expected) {
            if (!found.contains(version))
                throw new AssertionError("Expected source version not found: " + version);
            else
View Full Code Here

Examples of org.andrewberman.ui.tools.Tool

  public void mouseEvent(MouseEvent e, Point screen, Point model)
  {
    mousePt.setLocation(screen);
    pt.setLocation(screen);
    Tool t = EventManager.instance.getToolManager().getCurrentTool();
    if (t == null)
      return;
    if (PhyloWidget.ui.context.isOpen())
      return;
    if (getCurRange() == null)
      return;
    if (FocusManager.instance.getFocusedObject() != null)
      return;
    PhyloWidget.trees.getRenderer().setMouseLocation(pt);
    setCurRange(getNearestNode((float) pt.getX(), (float) pt.getY()));
    boolean containsPoint = containsPoint(getCurRange(), pt);
    switch (e.getID())
    {
      case (MouseEvent.MOUSE_MOVED):
      case (MouseEvent.MOUSE_DRAGGED):
        PhyloTree tree = (PhyloTree) PhyloWidget.trees.getTree();
        if (containsPoint && t.respondToOtherEvents())
        {
          UIUtils.setCursor(this, p, Cursor.HAND_CURSOR);
          tree.setHoveredNode(getCurRange().node);
        } else
        {
          UIUtils.releaseCursor(this, p);
          tree.setHoveredNode(null);
        }
        break;
      case (MouseEvent.MOUSE_PRESSED):
        if (containsPoint && t.respondToOtherEvents())
        {
          openContextMenu();
          isGlowing = false;
        }
        break;
    }
    if (!t.respondToOtherEvents())
    {
      PhyloTree tree = (PhyloTree) PhyloWidget.trees.getTree();
      tree.setHoveredNode(null);
      setCurRange(null);
    }
View Full Code Here

Examples of org.antlr.Tool

        infoTable.setModel(tableModel);
        infoTable.getParent().setBackground(Color.white);
       
        tableModel.addInfo("ANTLRWorks", XJApplication.getAppVersionShort());
        tableModel.addInfo("ANTLR", new Tool().VERSION);
        tableModel.addInfo("StringTemplate", StringTemplate.VERSION);
        tableModel.addInfo("Java", System.getProperty("java.version")+" ("+System.getProperty("java.vendor")+")");
        tableModel.fireTableDataChanged();

        resetAcknowledge();
View Full Code Here

Examples of org.antlr.Tool

            adjustedColumn = getDecisionColumn(g = engine.getDiscoveredLexerGrammar());

        if(adjustedColumn == -1)
            throw new Exception("No decision in the current line");

        CodeGenerator generator = new CodeGenerator(new Tool(), g,
                (String) g.getOption("language"));

        DFA dfa = g.getLookaheadDFAFromPositionInFile(line, adjustedColumn);
        decisionNumber = dfa.getDecisionNumber();
        DOTGenerator dg = new DOTGenerator(g);
View Full Code Here

Examples of org.antlr.Tool

        else
            params = new String[] { "-o", getOutputPath(), "-lib", window.getFileFolder(), window.getFilePath() };

        new File(getOutputPath()).mkdirs();

        Tool antlr = new Tool(Utils.concat(params, AWPrefs.getANTLR3Options()));
        antlr.process();

        boolean success = !el.hasErrors();
        if(success) {
            dateOfModificationOnDisk = window.getDocument().getDateOfModificationOnDisk();
        }
View Full Code Here

Examples of org.antlr.v4.Tool

      }
    }
    }

    protected org.antlr.v4.Tool newTool(String[] args) {
    Tool tool = new Tool(args);
    return tool;
  }
View Full Code Here

Examples of org.apache.any23.cli.Tool

     */
    @Test
    public void testDetectCLIPlugins() throws IOException {
        final Iterator<Tool> tools = manager.getApplicableTools(CRAWLER_TARGET_DIR, CRAWLER_DEPENDENCY_DIR);
        final Set<String> toolClasses = new HashSet<String>();
        Tool tool;
        while(tools.hasNext()) {
            tool = tools.next();
            assertTrue("Found duplicate tool.", toolClasses.add(tool.getClass().getName()));
        }
        assertTrue(
                String.format(
                        "Expected [%s] plugin be detected, but not found int the built classpath",
                        Crawler.class.getName()
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.