Пример #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);
 }