|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectErrorDialog
com.ibm.etools.systems.core.ui.messages.SystemMessageDialog
Field Summary | |
---|---|
static int |
BUTTON_ID
button id number for the first button in the button bar. |
static String |
copyright
|
Constructor Summary | |
---|---|
SystemMessageDialog(Shell parentShell,
SystemMessage message)
Creates an error dialog. |
Method Summary | |
---|---|
protected void |
buttonPressed(int id)
|
protected void |
createButtonsForButtonBar(Composite parent)
|
protected Control |
createDialogArea(Composite parent)
|
protected Text |
createDropDownList2(Composite parent)
Create this dialog's drop-down list component. |
static void |
displayErrorMessage(Shell shell,
String msgText)
For ease of use for simple error message text with no response from user. |
static void |
displayErrorMessage(Shell shell,
SystemMessage msg)
For ease of use for simple messages with no response from user. |
static void |
displayErrorMessage(Shell shell,
SystemMessage msg,
Exception exc)
For ease of use for simple messages which are the result of an exception |
static void |
displayExceptionMessage(Shell shell,
Exception exc)
For displaying a generic error message when an unexpected exception happens. |
static void |
displayHostErrorMessage(Shell shell,
String hostMsg)
For ease of use for simple host error messages that are xlated already. |
static void |
displayHostErrorMessage(Shell shell,
String hostMsg,
String levelTwo)
For ease of use for simple host error messages that are xlated already, and which have 2nd level text. |
static void |
displayHostWarningMessage(Shell shell,
String hostMsg)
For ease of use for simple host warning messages that are xlated already. |
static void |
displayHostWarningMessage(Shell shell,
String hostMsg,
String levelTwo)
For ease of use for simple host warning messages that are xlated already, and which have 2nd level text. |
static void |
displayMessage(org.eclipse.swt.widgets.Shell shell,
SystemMessageException msgEx)
Display this wrapped system message to the user |
static void |
displayMessage(Shell shell,
String msgText)
For ease of use for simple message text with no response from user. |
int |
getButtonPressedId()
returns the id of the button pressed |
static Shell |
getDefaultShell()
Keeping for posterity. |
static SystemMessage |
getExceptionMessage(Shell shell,
Exception exc)
When an exception occurs and you want to turn it into a SystemMessage, call this... |
int |
open()
Opens the message dialog to display the message. |
boolean |
openQuestion()
opens the dialog with Yes, No, Details button for an Inquiry/Question message Throws an IndicatorException if the message is not an Inquiry message returns true if Yes was pressed, False if No was pressed. |
boolean |
openQuestionNoException()
opens the dialog with Yes, No, Details button for an Inquiry/Question message. |
int |
openWithDetails()
Opens the message dialog with the details showing to display the message. |
int |
openWithDetails(Exception exc)
Opens the message dialog with the details showing to display an exception, if that is the root cause of the message. |
int |
openYesNoCancel()
opens the dialog with Yes, No, Cancel Details for an Inquiry/Question message throws an IndicatorException if the indicator is not Inquiry |
void |
setButtonIndex(int buttonIndex)
sets the default button for the message. |
void |
setButtons(String[] buttonList)
overrides the default button selection. |
void |
setException(Throwable exc)
When the message involves an exception for which we want to log the stack, set that exception here. |
static boolean |
show(Shell shell,
SystemMessage msg)
Show this message in the message dialog. |
static void |
showExceptionMessage(Shell shell,
String msg,
Exception exc)
Put up an error message when the error msg framework itself doesn't work. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
public static final int BUTTON_ID
The second button, would have an id of buttonId+1 etc.
Constructor Detail |
public SystemMessageDialog(Shell parentShell, SystemMessage message)
parentShell
- the shell under which to create this dialogmessage
- the message to display in the dialogMethod Detail |
protected void buttonPressed(int id)
protected void createButtonsForButtonBar(Composite parent)
protected Control createDialogArea(Composite parent)
protected Text createDropDownList2(Composite parent)
parent
- the parent composite
public void setException(Throwable exc)
public int open()
public int openWithDetails()
public int openWithDetails(Exception exc)
Also logs the first level text plus exception.
public boolean openQuestion() throws IndicatorException
IndicatorException
public boolean openQuestionNoException()
public int openYesNoCancel()
public int getButtonPressedId()
public void setButtons(String[] buttonList)
buttonList
- an array of buttons for the button barpublic void setButtonIndex(int buttonIndex)
buttonIndex
- the 0-based index of the buttonpublic static Shell getDefaultShell()
public static void displayErrorMessage(Shell shell, SystemMessage msg)
public static void displayErrorMessage(Shell shell, SystemMessage msg, Exception exc)
public static void displayErrorMessage(Shell shell, String msgText)
public static void displayMessage(Shell shell, String msgText)
public static void displayMessage(org.eclipse.swt.widgets.Shell shell, SystemMessageException msgEx)
public static void displayHostErrorMessage(Shell shell, String hostMsg)
public static void displayHostErrorMessage(Shell shell, String hostMsg, String levelTwo)
public static void displayHostWarningMessage(Shell shell, String hostMsg)
public static void displayHostWarningMessage(Shell shell, String hostMsg, String levelTwo)
public static void displayExceptionMessage(Shell shell, Exception exc)
public static SystemMessage getExceptionMessage(Shell shell, Exception exc)
public static void showExceptionMessage(Shell shell, String msg, Exception exc)
public static boolean show(Shell shell, SystemMessage msg)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |