@Override public void procedureModelUnloaded(String instanceId, boolean doneLocally) { Logger.debug("Received notification: procedure " + instanceId + " closed", Level.GUI, this); StackItem item = findRootItem(instanceId); if (item != null) { m_root.removeChild(item); m_view.refresh(); } }
@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(); }
@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(); } }