|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.Dialog org.eclipse.ecf.remoteservices.ui.MethodInvocationDialog
public final class MethodInvocationDialog
The MethodInvocationDialog allows a user to select a method given a
java.lang.Class
to invoke and communicate with a remote
service.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary | |
---|---|
static int |
ASYNC_FIRE_AND_GO
An integer constant that corresponds to the "Async Fire-and-Go" selection. |
static int |
ASYNC_FUTURE_RESULT
An integer constant that corresponds to the "Async Future Result" selection. |
static int |
ASYNC_LISTENER
An integer constant that corresponds to the "Async Listener" selection. |
static int |
OSGI_SERVICE_PROXY
An integer constant that corresponds to the "OSGi Service Proxy" selection. |
static int |
REMOTE_SERVICE_PROXY
An integer constant that corresponds to the "Remote Service Proxy" selection. |
static int |
SYNCHRONOUS
An integer constant that corresponds to the "Synchronous" selection. |
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, 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 | |
---|---|
MethodInvocationDialog(org.eclipse.jface.window.IShellProvider parentShell,
java.lang.Class cls)
Creates a new MethodInvocationDialog on top of the specified shell provider. |
|
MethodInvocationDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.Class cls)
Creates a new MethodInvocationDialog over the provided shell. |
Method Summary | |
---|---|
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell)
|
void |
create()
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
|
int |
getInvocationType()
Returns the type of invocation that should be used to call the selected method to communicate with a remote service. |
java.lang.reflect.Method |
getMethod()
Returns the method that has been selected by the user. |
java.lang.Object[] |
getMethodArguments()
Returns the arguments that has been specified by the user to pass to the method. |
int |
getTimeout()
Retrieves the timeout value that has been specified by the user. |
protected void |
okPressed()
|
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
---|
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, 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 |
---|
public static final int ASYNC_LISTENER
getInvocationType()
,
Constant Field Valuespublic static final int ASYNC_FUTURE_RESULT
getInvocationType()
,
Constant Field Valuespublic static final int ASYNC_FIRE_AND_GO
getInvocationType()
,
Constant Field Valuespublic static final int OSGI_SERVICE_PROXY
getInvocationType()
,
Constant Field Valuespublic static final int REMOTE_SERVICE_PROXY
getInvocationType()
,
Constant Field Valuespublic static final int SYNCHRONOUS
getInvocationType()
,
Constant Field ValuesConstructor Detail |
---|
public MethodInvocationDialog(org.eclipse.jface.window.IShellProvider parentShell, java.lang.Class cls)
parentShell
- the provider to return the parent shell of this dialogcls
- the class to select the methods frompublic MethodInvocationDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.Class cls)
parentShell
- the parent shellcls
- the class to select the methods fromMethod Detail |
---|
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell
in class org.eclipse.jface.window.Window
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
public void create()
create
in class org.eclipse.jface.dialogs.Dialog
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
public java.lang.reflect.Method getMethod()
public java.lang.Object[] getMethodArguments()
public int getTimeout()
public int getInvocationType()
ASYNC_LISTENER
,
ASYNC_FUTURE_RESULT
,
ASYNC_FIRE_AND_GO
,
OSGI_SERVICE_PROXY
,
REMOTE_SERVICE_PROXY
,
SYNCHRONOUS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |