com.opnworks.eclipse.rcp.common
Class WindowHelper

java.lang.Object
  extended bycom.opnworks.eclipse.rcp.common.WindowHelper

public class WindowHelper
extends java.lang.Object

Author:
Rigre G. Garciandía Sóñora

Method Summary
static void centerShell(org.eclipse.swt.widgets.Shell shell)
           
static int openConfirmMessageBox(java.lang.String title, java.lang.String message, java.lang.String[] buttonLabels)
           
static int openConfirmMessageBox(java.lang.String title, java.lang.String message, java.lang.String[] buttonLabels, int defaultButton)
           
static boolean openQuestionMessageBox(java.lang.String title, java.lang.String message, java.lang.String[] buttonLabels)
           
static int retrieveMaxWidth(org.eclipse.swt.widgets.Control[] controls)
           
static void showError(java.lang.String title, java.lang.String errorMessage)
           
static void showError(java.lang.String title, java.lang.String errorMessage, java.lang.String detailedErrorMessage)
           
static void showError(java.lang.String title, java.lang.String errorMessage, java.lang.Throwable t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

centerShell

public static void centerShell(org.eclipse.swt.widgets.Shell shell)

showError

public static void showError(java.lang.String title,
                             java.lang.String errorMessage,
                             java.lang.Throwable t)

showError

public static void showError(java.lang.String title,
                             java.lang.String errorMessage)

showError

public static void showError(java.lang.String title,
                             java.lang.String errorMessage,
                             java.lang.String detailedErrorMessage)

retrieveMaxWidth

public static int retrieveMaxWidth(org.eclipse.swt.widgets.Control[] controls)

openConfirmMessageBox

public static int openConfirmMessageBox(java.lang.String title,
                                        java.lang.String message,
                                        java.lang.String[] buttonLabels)

openConfirmMessageBox

public static int openConfirmMessageBox(java.lang.String title,
                                        java.lang.String message,
                                        java.lang.String[] buttonLabels,
                                        int defaultButton)

openQuestionMessageBox

public static boolean openQuestionMessageBox(java.lang.String title,
                                             java.lang.String message,
                                             java.lang.String[] buttonLabels)