List of usage examples for org.eclipse.jface.dialogs ProgressMonitorDialog setOpenOnRun
public void setOpenOnRun(boolean openOnRun)
From source file:ummisco.gama.ui.views.SyntaxErrorsView.java
static void build() { final ProgressMonitorDialog dialog = new ProgressMonitorDialog(WorkbenchHelper.getShell()); dialog.setBlockOnOpen(false);//from w w w . j a v a2s.c o m dialog.setCancelable(false); dialog.setOpenOnRun(true); try { dialog.run(true, false, monitor -> doBuild(monitor)); } catch (InvocationTargetException | InterruptedException e1) { e1.printStackTrace(); } }