*
* @see com.adito.agent.client.AgentClientGUI#confirm(int, java.lang.String,
* java.lang.String, java.lang.String, java.lang.String)
*/
public boolean confirm(int dialogType, String okText, String cancelText, String title, String message) {
Option ok = new Option(okText);
Option cancel = cancelText == null ? null : new Option(cancelText);
if (OptionDialog.prompt(getGUIComponent(), dialogType, title, message, cancel == null ? new Option[] { ok }
: new Option[] { ok, cancel }) != ok) { //$NON-NLS-1$$ //$NON-NLS-2$$
return false;
}
return true;