/** * ************************************************************************* 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; }
@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 contextError(ErrorData error) { Logger.debug("Fired [context error]", Level.COMM, this); ServerBridge.get().fireContextError(error); }
@Override public void contextDetached() { Logger.debug("Fired [context detached]", Level.COMM, this); ServerBridge.get().fireContextDetached(); }
@Override public void contextAttached(ContextInfo ctx) { Logger.debug("Fired [context attached]", Level.COMM, this); ServerBridge.get().fireContextAttached(ctx); }
public GuiContextOperations() { Logger.debug("Created", Level.INIT, this); }