Example usage for org.eclipse.jface.dialogs ProgressIndicator beginTask

List of usage examples for org.eclipse.jface.dialogs ProgressIndicator beginTask

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs ProgressIndicator beginTask.

Prototype

public void beginTask(int max) 

Source Link

Document

Initialize the progress bar.

Usage

From source file:org.eclipse.jface.snippets.dialogs.Snippet059VistaProgressIndicator.java

License:Open Source License

private static void performProgressOn(Display display, ProgressIndicator indicator) {

    indicator.beginTask(200);
    indicator.showNormal();/*from   www .  j  a  v a2s .  c  o  m*/
    indicator.worked(50);
    spin(display);

    indicator.showPaused();
    indicator.worked(50);
    spin(display);

    indicator.showError();
    indicator.worked(50);
    spin(display);
}