Example usage for org.eclipse.jface.dialogs ProgressMonitorDialog setOpenOnRun

List of usage examples for org.eclipse.jface.dialogs ProgressMonitorDialog setOpenOnRun

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs ProgressMonitorDialog setOpenOnRun.

Prototype

public void setOpenOnRun(boolean openOnRun) 

Source Link

Document

Sets whether the dialog should be opened before the operation is run.

Usage

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();
    }
}