Example usage for org.eclipse.jface.dialogs MessageDialog ERROR

List of usage examples for org.eclipse.jface.dialogs MessageDialog ERROR

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs MessageDialog ERROR.

Prototype

int ERROR

To view the source code for org.eclipse.jface.dialogs MessageDialog ERROR.

Click Source Link

Document

Constant for the error image, or a simple dialog with the error image and a single OK button (value 1).

Usage

From source file:us.pwc.vista.eclipse.core.helper.MessageDialogHelper.java

License:Apache License

private static int getDialogSeverity(int severity) {
    switch (severity) {
    case IStatus.ERROR:
        return MessageDialog.ERROR;
    case IStatus.WARNING:
        return MessageDialog.WARNING;
    case IStatus.INFO:
        return MessageDialog.INFORMATION;
    default:/*from ww  w.j  ava 2 s  .c o  m*/
        return MessageDialog.NONE;
    }
}