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

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

Introduction

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

Prototype

public void showError() 

Source Link

Document

Show the receiver as showing an error.

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);//from www .j  a  va2s.  c  o m
    indicator.showNormal();
    indicator.worked(50);
    spin(display);

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

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