edu.wpi.ebob.internal.gui.dialogs
Class ExecuteMethodDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by edu.wpi.ebob.internal.gui.dialogs.ExecuteMethodDialog
All Implemented Interfaces:
ParameterChangeListener, java.util.EventListener, org.eclipse.jface.window.IShellProvider

public class ExecuteMethodDialog
extends org.eclipse.jface.dialogs.Dialog
implements ParameterChangeListener

JFace dialog for handling method invocation

Author:
Justin Braga

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
private  boolean okState
           
private  IClass[] parameterTypes
           
private  java.lang.String statusMessage
           
private  org.eclipse.jface.viewers.TableViewer tableViewer
           
 
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
ExecuteMethodDialog(org.eclipse.swt.widgets.Shell parentShell, IClass[] parameterTypes)
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
 IObject[] getArguments()
           
protected  void okPressed()
           
 void parameterChanged()
          Invoked when an object has been added to the Object Bench.
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableViewer

private org.eclipse.jface.viewers.TableViewer tableViewer

parameterTypes

private IClass[] parameterTypes

okState

private boolean okState

statusMessage

private java.lang.String statusMessage
Constructor Detail

ExecuteMethodDialog

public ExecuteMethodDialog(org.eclipse.swt.widgets.Shell parentShell,
                           IClass[] parameterTypes)
Parameters:
parentShell - The parent of the dialog box
parameterTypes - The parameter types for the selected method
Method Detail

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Overrides:
configureShell in class org.eclipse.jface.window.Window

okPressed

protected void okPressed()
Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog

parameterChanged

public void parameterChanged()
Description copied from interface: ParameterChangeListener
Invoked when an object has been added to the Object Bench.

Specified by:
parameterChanged in interface ParameterChangeListener

getArguments

public IObject[] getArguments()
                       throws ParserException,
                              java.lang.ClassCastException
Throws:
ParserException
java.lang.ClassCastException