*/
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == this.queryBuilderButton) {
Window owner = SwingUtilities.windowForComponent(this);
EventQueryBuilderDialog dialog = new EventQueryBuilderDialog(owner);
dialog.setVisible(true);
if (dialog.getQuery() != null)
this.queryTextArea.setText(dialog.getQuery());
}
if (e.getSource() == this.addForButton) {
String selection = this.templateTextArea.getSelectedText();
if (selection != null) {