iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.ui.dialogs
Class ISeriesSystemMessageDialog

java.lang.Object
  extended byorg.eclipse.jface.window.Window
      extended byorg.eclipse.jface.dialogs.Dialog
          extended byorg.eclipse.jface.dialogs.IconAndMessageDialog
              extended byorg.eclipse.jface.dialogs.ErrorDialog
                  extended bycom.ibm.etools.systems.core.ui.messages.SystemMessageDialog
                      extended bycom.ibm.etools.iseries.core.ui.dialogs.ISeriesSystemMessageDialog
All Implemented Interfaces:
EventListener, SelectionListener, SWTEventListener

public class ISeriesSystemMessageDialog
extends com.ibm.etools.systems.core.ui.messages.SystemMessageDialog
implements SelectionListener

Message dialog for iSeries. Adds an option to not show the message again.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
protected  Button noShowAgainButton
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.messages.SystemMessageDialog
BUTTON_ID, copyright
 
Fields inherited from class org.eclipse.jface.dialogs.ErrorDialog
AUTOMATED_MODE
 
Fields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
imageLabel, messageLabel
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, dialogArea, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ISeriesSystemMessageDialog(Shell parentShell, com.ibm.etools.systems.core.messages.SystemMessage message, boolean noShowAgainOption)
          Constructor.
 
Method Summary
protected  Control createDialogArea(Composite parent)
           
 boolean getNoShowAgainSelection()
          Returns whether the do not show again button was selected.
 void widgetDefaultSelected(SelectionEvent e)
           
 void widgetSelected(SelectionEvent e)
           
 
Methods inherited from class com.ibm.etools.systems.core.ui.messages.SystemMessageDialog
buttonPressed, createButtonsForButtonBar, createDropDownList2, displayErrorMessage, displayErrorMessage, displayErrorMessage, displayExceptionMessage, displayHostErrorMessage, displayHostErrorMessage, displayHostWarningMessage, displayHostWarningMessage, displayMessage, displayMessage, getButtonPressedId, getDefaultShell, getExceptionMessage, open, openQuestion, openQuestionNoException, openWithDetails, openWithDetails, openYesNoCancel, setButtonIndex, setButtons, setException, show, showExceptionMessage
 
Methods inherited from class org.eclipse.jface.dialogs.ErrorDialog
close, configureShell, createDialogAndButtonArea, createDropDownList, getImage, openError, openError, shouldDisplay
 
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
createButtonBar, createContents, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, setBlockOnOpen, setDefaultImage, setDefaultImages, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noShowAgainButton

protected Button noShowAgainButton
Constructor Detail

ISeriesSystemMessageDialog

public ISeriesSystemMessageDialog(Shell parentShell,
                                  com.ibm.etools.systems.core.messages.SystemMessage message,
                                  boolean noShowAgainOption)
Constructor.

Parameters:
parentShell - the parent shell.
message - the message.
Method Detail

createDialogArea

protected Control createDialogArea(Composite parent)
See Also:
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)
Specified by:
widgetDefaultSelected in interface SelectionListener
See Also:
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)

widgetSelected

public void widgetSelected(SelectionEvent e)
Specified by:
widgetSelected in interface SelectionListener
See Also:
SelectionListener.widgetSelected(org.eclipse.swt.events.SelectionEvent)

getNoShowAgainSelection

public boolean getNoShowAgainSelection()
Returns whether the do not show again button was selected.

Returns:
true if the user chose not to show this message again, false otherwise.

iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.