components/studio-platform/plugins/org.wso2.integrationstudio.carbonserver44microei12/src/org/wso2/integrationstudio/carbonserver44microei12/launch/MicroIntegratorRunLaunchDelegate.java
/**
     * This method will handle an error occurred in the application. The thrown
     * exception will be logged using {@link IIntegrationStudioLog} and also pop
     * up an error Dialog of {@link ErrorDialog} mentioning the given message
     * and occurred exception.
     * 
     * @param ex
     * @param message
     * @see ErrorDialog
     * @see IStatus
     */
This method will handle an error occurred in the application. The thrown
exception will be logged using  IIntegrationStudioLog and also pop
up an error Dialog of  ErrorDialog mentioning the given message
and occurred exception.

@param ex
@param message
@see ErrorDialog
@see IStatus
This method will handle an error occurred in the application . The thrown exception will be logged using IIntegrationStudioLog and also pop up an error Dialog of ErrorDialog mentioning the given message and occurred exception . @param ex @param message @see ErrorDialog @see IStatus
public static void popUpErrorDialogAndLogException(final String message) {
        final IStatus editorStatus = new Status(IStatus.ERROR, Activator.PLUGIN_ID, message);
        Display.getDefault().syncExec(new Runnable() {
            @Override
            public void run() {
                ErrorDialog.openError(Display.getDefault().getActiveShell(), "Error selecting project", message,
                        editorStatus);
            }
        });
    }
public static void popUpErrorDialogAndLogException ( final String message ) { final IStatus editorStatus = new Status ( IStatus . ERROR , Activator . PLUGIN_ID , message ) ; Display . getDefault ( ) . syncExec ( new Runnable ( ) { @ Override public void run ( ) { ErrorDialog . openError ( Display . getDefault ( ) . getActiveShell ( ) , "Error selecting project" , message , editorStatus ) ; } } ) ; }
This method will handle an error occurred in the application.
This method will handle an error occurred in the application .