use of org.pentaho.ui.xul.components.XulMessageBox in project pdi-dataservice-server-plugin by pentaho.
the class ParameterGenerationController method removeParameter.
public void removeParameter() throws XulException {
PushDownOptimizationMeta meta = checkNotNull(model.getSelectedOptimization());
String parameterName = ((ParameterGeneration) meta.getType()).getParameterName();
XulMessageBox messageBox = createMessageBox();
messageBox.setTitle(getString(PKG, "ParameterGenerationController.Delete.Title"));
messageBox.setMessage(getString(PKG, "ParameterGenerationController.Delete.Message", parameterName));
messageBox.setIcon(SWT.ICON_QUESTION);
messageBox.setButtons(new Object[] { SWT.YES, SWT.NO });
if (messageBox.open() == SWT.YES) {
model.setSelectedParameter(null);
model.remove(meta);
}
}
use of org.pentaho.ui.xul.components.XulMessageBox in project data-access by pentaho.
the class MetadataImportDialogController method showMessagebox.
/**
* Shows an informational dialog
*
* @param title title of dialog
* @param message message within dialog
*/
private void showMessagebox(final String title, final String message) {
XulMessageBox messagebox = new GwtMessageBox() {
@Override
public void hide() {
super.hide();
if (importCompleteCallback != null) {
importCompleteCallback.onImportSuccess();
}
}
};
messagebox.setTitle(title);
messagebox.setMessage(message);
messagebox.open();
}
Aggregations