// Compare the value before modifying the query - text area
// will call "verify" even if no changes have occured....
if (key.equals(DEFAULT_LABEL)) {
if (!Util.nullSafeEquals(text, query.getDefaultTemplate())) {
query.setDefaultTemplate(text);
mediator.fireQueryEvent(new QueryEvent(this, query));
}
}
else {
if (!Util.nullSafeEquals(text, query.getTemplate(key))) {
query.setTemplate(key, text);
mediator.fireQueryEvent(new QueryEvent(this, query));
}
}
}