示例#1
0
 @Override
 public void procedureModelLoaded(String instanceId) {
   Logger.debug("Received notification: procedure " + instanceId + " open", Level.GUI, this);
   Procedure proc = s_mgr.getProcedure(instanceId);
   if (m_empty) {
     m_root.removeChild(m_root.getChildren()[0]);
     m_empty = false;
   }
   StackItem item = new StackItem(instanceId, proc.getRootCode());
   m_root.addChild(item);
   m_view.refresh();
 }
示例#2
0
 @Override
 public void procedureModelReset(String instanceId) {
   try {
     StackItem item = findRootItem(instanceId);
     if (item != null) {
       Procedure proc = s_mgr.getProcedure(instanceId);
       item.reset(proc.getRootCode());
       m_view.refresh();
     }
   } catch (NoSuchProcedure ex) {
     ex.printStackTrace();
   }
 }