jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.SessionManager.windowActivated ( WindowEvent  event)

Handler for events fired for activated (focused) windows.

Parameters
[in]eventthe activated window event

Definition at line 387 of file SessionManager.java.

References org.libcsdbg.jtracer.SessionManager.current, org.libcsdbg.jtracer.SessionManager.owner, and org.libcsdbg.jtracer.SessionManager.sessions.

388  {
389  try {
390  JFrame f = (JFrame) event.getWindow();
391  if (f.equals(owner))
392  return;
393 
394  for (int i = 0, cnt = sessions.size(); i < cnt; i++) {
395  Session cur = sessions.get(i);
396 
397  if (f.equals(cur)) {
398  current = i;
399  firePropertyChange("currentSession", null, current);
400  break;
401  }
402  }
403  }
404 
405  catch (Throwable t) {
406  Registry.debug(t);
407  }
408  }
int current
Currently selected (focused) client.