use of java.awt.event.ActionListener in project antlrworks by antlr.
the class DBControlPanel method createStepOverButton.
public JButton createStepOverButton() {
JButton button = XJRollOverButton.createMediumButton(IconManager.shared().getIconStepOver());
button.setToolTipText("Step Over");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
debuggerTab.getRecorder().stepOver();
updateInterfaceLater();
StatisticsAW.shared().recordEvent(StatisticsAW.EVENT_DEBUGGER_STEP_OVER);
}
});
return button;
}
use of java.awt.event.ActionListener in project antlrworks by antlr.
the class DBControlPanel method createGoToStartButton.
public JButton createGoToStartButton() {
JButton button = XJRollOverButton.createMediumButton(IconManager.shared().getIconGoToStart());
button.setToolTipText("Go To Start");
button.setFocusable(false);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
debuggerTab.resetGrammarLocation();
debuggerTab.getRecorder().goToStart();
updateInterfaceLater();
StatisticsAW.shared().recordEvent(StatisticsAW.EVENT_DEBUGGER_GOTO_START);
}
});
return button;
}
use of java.awt.event.ActionListener in project antlrworks by antlr.
the class DebuggerTab method createToggleButton.
public XJRotableToggleButton createToggleButton(String title, final int tag, Component c) {
XJRotableToggleButton b = new XJRotableToggleButton(title);
b.setFocusable(false);
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
performToggleButtonAction(tag);
}
});
components2toggle.put(c, b);
return b;
}
use of java.awt.event.ActionListener in project antlrworks by antlr.
the class GPanel method createShowRuleNameButton.
private JCheckBox createShowRuleNameButton() {
final JCheckBox button = new JCheckBox("Rule Name");
button.setFocusable(false);
button.setSelected(context.isShowRuleName());
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
context.setShowRuleName(button.isSelected());
view.refresh();
}
});
return button;
}
use of java.awt.event.ActionListener in project antlrworks by antlr.
the class GPanel method createNextErrorButton.
private JButton createNextErrorButton() {
JButton button = XJRollOverButton.createMediumButton(IconManager.shared().getIconForward());
button.setFocusable(false);
button.setToolTipText("Show Next Error");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
if (view.setNextGraph()) {
view.refresh();
createPathSelectionButtons();
updateCurrentError();
}
}
});
return button;
}
Aggregations