Example #1
0
 public void actionPerformed(ActionEvent e) {
   ASDEditor editor = eNode.getEditor();
   if (editor == null) return;
   String command = e.getActionCommand();
   if (command.equals("Edit semantic action")) editor.editAction(eNode);
   else if (command.equals("Edit semantic value")) editor.editValue(eNode);
   else if (command.equals("Toggle Initial node")) editor.toggleInitial(eNode);
   else if (command.equals("Toggle Final node")) {
     editor.toggleFinal(eNode);
     eNode.changePopupMenu();
   } else if (command.equals("Delete node")) editor.deleteNode(eNode);
 }
Example #2
0
 void setEditor(ASDEditor newEditor) {
   editor = newEditor;
   setContext(newEditor.getNetPanel());
 }