use of org.jowidgets.cap.ui.api.execution.IExecutionTask in project jo-client-platform by jo-source.
the class ProgressDialogParameterProvider method showProgress.
private void showProgress(final IExecutionContext executionContext, final List<IBeanProxy<BEAN_TYPE>> beans) {
if (beans.size() > 0) {
final IExecutionTask executionTask = beans.iterator().next().getExecutionTask();
if (executionTask != null) {
final IWindow activeWindow = Toolkit.getActiveWindow();
final IExecutionTaskDialogBluePrint dialogBp = CapUiToolkit.bluePrintFactory().executionTaskDialog(executionTask);
dialogBp.setModal(false);
dialogBp.setExecutionContext(executionContext);
executionTaskDialog = activeWindow.createChildWindow(dialogBp);
executionTaskDialog.setVisible(true);
}
}
}
Aggregations