예제 #1
0
 private IAC.Node getNodeIAC(String label) {
   for (Iterator<IAC.Node> it = (Iterator<IAC.Node>) IACModel.getNodes().iterator();
       it.hasNext(); ) {
     IAC.Node cur = it.next();
     if (cur.getLabel().equals(label)) return cur;
   }
   return null;
 }
예제 #2
0
  private statechart.Node IACNodeToStateChartNode(IAC.Node node) {
    if (node == null) return null;
    statechart.Node item = StatechartFactory.eINSTANCE.createNode();

    item.setActivity(node.getActivity());
    item.setLabel(node.getLabel());
    item.setName(node.getName());
    item.setType(node.getType());

    return item;
  }