g-Eclipse
Release 1.0.0

eu.geclipse.ui.dialogs
Class ProblemDialog

java.lang.Object
  extended by ErrorDialog
      extended by eu.geclipse.ui.dialogs.ProblemDialog

public class ProblemDialog
extends ErrorDialog

The ProblemDialog is the user-friendly way of g-Eclipse of reporting problems to the user. It displays not only the description of the problem but also the registered solutions that could potentially solve the problem. The active solutions are clickable and perform some action, like generating a problem report or logging the exception.


Field Summary
static int SOLVE
          Return code determining that a solution was chosen.
 
Method Summary
static int openProblem(Shell parent, java.lang.String dialogTitle, java.lang.String message, java.lang.Throwable exc)
          Convenience static method for opening a ProblemDialog.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOLVE

public static final int SOLVE
Return code determining that a solution was chosen.

See Also:
Constant Field Values
Method Detail

openProblem

public static int openProblem(Shell parent,
                              java.lang.String dialogTitle,
                              java.lang.String message,
                              java.lang.Throwable exc)
Convenience static method for opening a ProblemDialog. This method has to be called from the UI thread. The parent Shell may be null. In this case a default Shell is chosen. Nevertheless it is recommended to not call this method without a valid Shell.

Parameters:
parent - The parent Shell of the dialog.
dialogTitle - The dialog's title.
message - A short message displayed as description of the problem.
exc - An optional exception. If this is a ProblemException the corresponding reasons and solutions are displayed.
Returns:
The dialog's return status.

g-Eclipse
Release 1.0.0