drools-eclipse/org.guvnor.tools/src/org/guvnor/tools/utils/PlatformUtils.java
public static void reportAuthenticationFailure() {
        Display display = PlatformUI.getWorkbench().getDisplay();
        display.asyncExec(new Runnable() {
            public void run() {
                Display display = Display.getCurrent();
                Shell shell = display.getActiveShell();
                MessageDialog.openError(shell, Messages.getString("login.failure.dialog.caption"),  //$NON-NLS-1$
                                       Messages.getString("login.failure.dialog.message")); //$NON-NLS-1$
            }
        });
    }
public static void reportAuthenticationFailure() {
        Display display = PlatformUI.getWorkbench().getDisplay();
        display.asyncExec(new Runnable() {
            public void run() {
                Display display = Display.getCurrent();
                Shell shell = display.getActiveShell();
                MessageDialog.openError(shell, Messages.getString("login.failure.dialog.caption"),  //$NON-NLS-1$
                                       Messages.getString("login.failure.dialog.message")); //$NON-NLS-1$
            }
        });
    }
public static void reportAuthenticationFailure ( ) { Display display = PlatformUI . getWorkbench ( ) . getDisplay ( ) ; display . asyncExec ( new Runnable ( ) { public void run ( ) { Display display = Display . getCurrent ( ) ; Shell shell = display . getActiveShell ( ) ; MessageDialog . openError ( shell , Messages . getString ( "login.failure.dialog.caption" ) , //$NON-NLS-1$ Messages . getString ( "login.failure.dialog.message" ) ) ; //$NON-NLS-1$ } } ) ; }
Convenience method for reporting log in failure
Convenience method for reporting log in failure