Examples of findNode()


Examples of org.eclipse.jdt.internal.core.Annotation.findNode()

      ASTParser astParser = ASTParser.newParser(AST.JLS3);
      astParser.setSource(cu.getContents());
      ASTNode node = astParser.createAST(new NullProgressMonitor());

      ASTNode aNode = a
          .findNode((org.eclipse.jdt.core.dom.CompilationUnit) node);
      if (aNode instanceof NormalAnnotation) {
        NormalAnnotation aA = (NormalAnnotation) aNode;
        List values = aA.values();
        for (Object exp : values) {
View Full Code Here

Examples of org.jboss.cache.aop.test.NodeManager.findNode()

      pm_.addNode("root", "kanto");
      pm_.addNode("root.kanto", "tokyo");
      pm_.addNode("root.kanto", "yakahoma");
      pm_.addNode("root.kanto.tokyo", "handanshita");

      TestNode kanto = pm_.findNode("root.kanto");
      TestNode yakahoma = pm_.findNode("root.kanto.yakahoma");
      TestNode hadanshita = pm_.findNode("root.kanto.tokyo.handanshita");

      pm_ = new NodeManager();
      pm_.setRootNode("rt");
View Full Code Here

Examples of org.jboss.on.embedded.ui.NavigationAction.findNode()

    }

    public void findNode(JONTreeNode node, int level)
    {
        NavigationAction navAction = getNavigationAction();
        JONTreeNode retrievedNode = navAction.findNode(node.getPath());

        assert retrievedNode != null;
        assert retrievedNode.getName().equals(node.getName());
        assert retrievedNode.getPath().equals(node.getPath());
    }
View Full Code Here

Examples of org.jbpm.graph.def.ProcessDefinition.findNode()

    List transitionLogs = loggingInstance.getLogs(TransitionLog.class);
    assertEquals(2, transitionLogs.size());
    TransitionLog transitionLog = (TransitionLog) transitionLogs.get(1);
    assertSame(token, transitionLog.getToken());
    assertNotNull(transitionLog.getDate());
    assertSame(processDefinition.findNode("superstate/state"), transitionLog.getSourceNode());
    assertSame(processDefinition.getNode("end"), transitionLog.getDestinationNode());
  }

  public void testTransitionToSuperStateFirstChildLogs() {
    ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
View Full Code Here

Examples of org.jbpm.graph.def.ProcessDefinition.findNode()

    assertEquals(1, transitionLogs.size());
    TransitionLog transitionLog = (TransitionLog) transitionLogs.get(0);
    assertSame(token, transitionLog.getToken());
    assertNotNull(transitionLog.getDate());
    assertSame(processDefinition.getStartState(), transitionLog.getSourceNode());
    assertSame(processDefinition.findNode("superstate/state"), transitionLog.getDestinationNode());
  }
}
View Full Code Here

Examples of org.jbpm.graph.def.ProcessDefinition.findNode()

    );
    // create the process instance
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();
    assertEquals(processDefinition.findNode("superstate/insidesuperstate"), token.getNode());
    processInstance.signal();
    assertEquals(processDefinition.getNode("s"), token.getNode());
  }

  public void testTransitionToSuperState() {
View Full Code Here

Examples of org.jbpm.graph.def.ProcessDefinition.findNode()

    );
    // create the process instance
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();
    assertEquals(processDefinition.findNode("superstate/insidesuperstate"), token.getNode());
  }

}
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.findNode()

          ObservableElementImpl transitionParent = transition.getParent();
         
          if ( (transitionParent!=null)
               && (! transitionParent.equals(processDefinition))
             ) {
            node = (NodeImpl) processDefinition.findNode(transitionParent.getName());
          }
        }
      }
     
      if (node!=null) {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.NodeFinder.findNode()

    @Override
    public void execute(String[] params) throws CommandException {
        String pathFragment = params[0];
        NodeFinder finder = new NodeFinder(page.getTreeMapper().m_targetTreeComponent);
        Node node = finder.findNode(pathFragment);
        if (node != null) {
            if (node.isFolder()) {
                Alert.error("You cannot map a target folder node.", "Not Allowed");
            } else {
                page.showMapping(new NodePath(node.m_deName));
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeMapperSourceTree.findNode()

        }
    }

    private Node findNodeInSourceTree(Node node) {
        TreeMapperSourceTree sourceTree = tree.getTreeMapper().m_sourceTreeComponent;
        return sourceTree.findNode(node.m_deName);
    }

    @Override
    public boolean delete(CompletionToken token) {
        // Not supported
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.