示例#1
0
 /**
  * ************************************************************************* Set an empty model
  * ***********************************************************************
  */
 protected void emptyModel() {
   if (m_root == null) {
     m_root = new StackItem();
   }
   Logger.debug("Empty model", Level.GUI, this);
   m_root.addChild(new StackItem("(none)", ""));
   m_empty = true;
 }
示例#2
0
 @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();
   }
 }
示例#3
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();
 }
示例#4
0
 @Override
 public void contextError(ErrorData error) {
   Logger.debug("Fired [context error]", Level.COMM, this);
   ServerBridge.get().fireContextError(error);
 }
示例#5
0
 @Override
 public void contextDetached() {
   Logger.debug("Fired [context detached]", Level.COMM, this);
   ServerBridge.get().fireContextDetached();
 }
示例#6
0
 @Override
 public void contextAttached(ContextInfo ctx) {
   Logger.debug("Fired [context attached]", Level.COMM, this);
   ServerBridge.get().fireContextAttached(ctx);
 }
示例#7
0
 public GuiContextOperations() {
   Logger.debug("Created", Level.INIT, this);
 }