Handler for events fired from the toolbar of the frame.
- Parameters
-
[in] | event | the action event |
Definition at line 342 of file Session.java.
References org.libcsdbg.jtracer.Alert.error(), org.libcsdbg.jtracer.Session.isLocked, and org.libcsdbg.jtracer.Session.tools.
345 String cmd = event.getActionCommand();
347 if (cmd.equals(
"Remove trace")) {
348 int i = tabs.getSelectedIndex();
354 int cnt = tabs.getTabCount();
355 firePropertyChange(
"traceCount", null, cnt);
365 tools.getComponent(0).setEnabled(
false);
366 tools.getComponent(7).setEnabled(
false);
369 else if (cmd.equals(
"Lock")) {
372 Registry conf = Registry.getCurrent();
373 Button tool = (Button)
tools.getComponent(1);
376 tool.setIcon(conf.loadIcon(
"unlock24.png"));
377 tool.setToolTipText(
"Unlock");
381 tool.setIcon(conf.loadIcon(
"lock24.png"));
382 tool.setToolTipText(
"Lock");
386 else if (cmd.equals(
"Find"))
387 Alert.error(
this,
"Not implemented yet",
false);
390 catch (Throwable t) {
JToolBar tools
Trace and frame tools.
boolean isLocked
Lock state indicator.