Example usage for org.eclipse.jface.dialogs DialogPage getErrorMessage

List of usage examples for org.eclipse.jface.dialogs DialogPage getErrorMessage

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs DialogPage getErrorMessage.

Prototype

@Override
    public String getErrorMessage() 

Source Link

Usage

From source file:gov.redhawk.ide.graphiti.sad.ui.tests.PortStatsPrefPageTest.java

License:Open Source License

private String getErrorMessage(final SWTBotShell shell) {
    Display.getDefault().syncExec(new Runnable() {

        @Override//from w w  w  .  j  a  v  a2s.  c  om
        public void run() {
            Shell w = shell.widget;
            PreferenceDialog data = (PreferenceDialog) w.getData();
            DialogPage page = (DialogPage) data.getSelectedPage();
            setErrorMessage(page.getErrorMessage());
        }
    });

    return this.errorMessage;
}