JButton button = XJRollOverButton.createMediumButton(IconManager.shared().getIconRun());
button.setToolTipText("Run");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
if(AWPrefs.isAlertInterpreterLimitation()) {
XJAlert alert = XJAlert.createInstance();
alert.setDisplayDoNotShowAgainButton(true);
alert.showSimple(getContainer(), "Warning", "The interpreterTab does not run actions nor evaluate syntactic predicates." +
"\nUse the debugger if you want to use these ANTLR features.");
AWPrefs.setAlertInterpreterLimitation(!alert.isDoNotShowAgain());
}
StatisticsAW.shared().recordEvent(StatisticsAW.EVENT_INTERPRETER_BUTTON);
interpret();
}
});