jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.MainFrame.propertyChange ( PropertyChangeEvent  event)

Handler for events fired when UI properties change.

Parameters
[in]eventthe property change event

Definition at line 472 of file MainFrame.java.

References org.libcsdbg.jtracer.LogPane.appendln(), org.libcsdbg.jtracer.MainFrame.desktop, org.libcsdbg.jtracer.SessionManager.getCurrent(), org.libcsdbg.jtracer.SessionManager.getTraceCount(), org.libcsdbg.jtracer.MainFrame.log, org.libcsdbg.jtracer.MainFrame.menu, and org.libcsdbg.jtracer.MenuBar.setSelectedSession().

473  {
474  try {
475  String key = event.getPropertyName();
476  Object val = event.getNewValue();
477 
478  if (key.equals("sessionCount")) {
479  firePropertyChange("hasClients", null, (Integer) val != 0);
480  menu.listSessions(desktop.getSessions(), desktop.getCurrent());
481  status.setIndicators(desktop.getSessionCount(), desktop.getTraceCount());
482  }
483 
484  else if (key.equals("traceCount")) {
485  menu.listSessions(desktop.getSessions(), desktop.getCurrent());
486  status.setIndicators(desktop.getSessionCount(), desktop.getTraceCount());
487  }
488 
489  else if (key.equals("currentSession"))
490  menu.setSelectedSession((Integer) val);
491 
492  else if (key.equals("sessionRequest"))
493  log.appendln((String) val, "data");
494  }
495 
496  catch (Throwable t) {
497  Registry.debug(t);
498  }
499  }
LogPane log
Application logging pane.
Definition: MainFrame.java:67
void appendln(String ln, String tag)
Append a line of formatted text and a line break.
Definition: LogPane.java:155
void setSelectedSession(int sel)
Update the session list menu to show the currently selected session.
Definition: MenuBar.java:141
MenuBar menu
Application menu.
Definition: MainFrame.java:64
int getTraceCount()
Get the total number of traces.
SessionManager desktop
Main and window manager.
Definition: MainFrame.java:85

+ Here is the call graph for this function: