Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.sep.ui
Class PhantomServiceEntryPointRefreshMsgDialog

java.lang.Object
  extended by MessageDialog
      extended by com.ibm.etools.systems.as400.debug.sep.ui.PhantomServiceEntryPointRefreshMsgDialog

public class PhantomServiceEntryPointRefreshMsgDialog
extends MessageDialog


Nested Class Summary
 class PhantomServiceEntryPointRefreshMsgDialog.ServiceEntryPointViewTableContentProvider
           
 
Field Summary
static int BUTTON_ID
          button id number for the first button in the button bar.
static int CANCEL_BUTTON
           
static int CONTINUE_BUTTON
           
static String copyright
           
 
Constructor Summary
PhantomServiceEntryPointRefreshMsgDialog(Shell parentShell, String dialogTitle, String message, String[] buttons, List<PhantomServiceEntryPoint> refreshList)
          Creates an message dialog.
 
Method Summary
protected  void buttonPressed(int id)
           
protected  Control createButtonBar(Composite parent)
           
protected  void createButtonsForButtonBar(Composite parent)
           
protected  Control createDialogArea(Composite parent)
           
protected  boolean customShouldTakeFocus()
           
 int getButtonPressed()
          returns the id of the button pressed
protected  String getTableColumnText(Object element, int columnIndex)
           
protected  void handleShellCloseEvent()
           
 int open()
          Opens the message dialog to display the 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.
 void setButtonIndex(int buttonIndex)
          sets the default button for the message.
 void setButtons(String[] buttonList)
          overrides the default button selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

CONTINUE_BUTTON

public static final int CONTINUE_BUTTON
See Also:
Constant Field Values

CANCEL_BUTTON

public static final int CANCEL_BUTTON
See Also:
Constant Field Values

BUTTON_ID

public static final int BUTTON_ID
button id number for the first button in the button bar.

The second button, would have an id of buttonId+1 etc.

See Also:
Constant Field Values
Constructor Detail

PhantomServiceEntryPointRefreshMsgDialog

public PhantomServiceEntryPointRefreshMsgDialog(Shell parentShell,
                                                String dialogTitle,
                                                String message,
                                                String[] buttons,
                                                List<PhantomServiceEntryPoint> refreshList)
Creates an message dialog. Note that the dialog will have no visual representation (no widgets) until it is told to open.

Parameters:
parentShell - the shell under which to create this dialog
message - the message to display in the dialog
Method Detail

buttonPressed

protected void buttonPressed(int id)

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)

createDialogArea

protected Control createDialogArea(Composite parent)

open

public int open()
Opens the message dialog to display the message.


openWithDetails

public int openWithDetails()
Opens the message dialog with the details showing to display the message.


openWithDetails

public 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.

Also logs the first level text plus exception.


getButtonPressed

public int getButtonPressed()
returns the id of the button pressed


setButtons

public void setButtons(String[] buttonList)
overrides the default button selection.

Parameters:
buttonList - an array of buttons for the button bar

setButtonIndex

public void setButtonIndex(int buttonIndex)
sets the default button for the message. Use this method if you wan to override the default button (the first one)

Parameters:
buttonIndex - the 0-based index of the button

getTableColumnText

protected String getTableColumnText(Object element,
                                    int columnIndex)

createButtonBar

protected Control createButtonBar(Composite parent)

customShouldTakeFocus

protected boolean customShouldTakeFocus()

handleShellCloseEvent

protected void handleShellCloseEvent()

Rational Developer for i
7.5.0

Copyright 2009 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.