vocleditor.dialog
Class MethodPropertiesDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TitleAreaDialog
vocleditor.dialog.MethodPropertiesDialog
- All Implemented Interfaces:
- java.util.EventListener, org.eclipse.jface.window.IShellProvider, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener
public class MethodPropertiesDialog
- extends org.eclipse.jface.dialogs.TitleAreaDialog
- implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.ModifyListener
- Author:
- tugstugi
Dialog to modify method properties
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE |
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
blockedHandler, buttonBar, 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 |
MethodPropertiesDialog(org.eclipse.swt.widgets.Shell parentShell,
VOCLModel.Constraint constraint,
VOCLModel.ClassifierRole classifierRole,
VOCLModel.Method method)
Constructs a ClassifierPropertiesDialog |
Method Summary |
java.util.Hashtable |
getChangedParameters()
Returns the hashtable of changed parameters. |
java.lang.String |
getName()
Returns the method name. |
java.util.List |
getParameters()
Returns the list of parameters. |
java.lang.String |
getReturnType()
Returns the method return type. |
java.lang.String |
getReturnVariableName()
Returns the return variable name. |
void |
modifyText(org.eclipse.swt.events.ModifyEvent e)
Implementation of ModifyListener.modifyText() used to show error messages and
disable ok button on incomplete input |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
listens and reacts to "Add", "Edit" and "Delete" buttons |
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodPropertiesDialog
public MethodPropertiesDialog(org.eclipse.swt.widgets.Shell parentShell,
VOCLModel.Constraint constraint,
VOCLModel.ClassifierRole classifierRole,
VOCLModel.Method method)
- Constructs a ClassifierPropertiesDialog
- Parameters:
parentShell
- the parent shellconstraint
- the constraintclassifierRole
- the classifier rolemethod
- the Method to be shown/modified
modifyText
public void modifyText(org.eclipse.swt.events.ModifyEvent e)
- Implementation of ModifyListener.modifyText() used to show error messages and
disable ok button on incomplete input
- Specified by:
modifyText
in interface org.eclipse.swt.events.ModifyListener
getName
public java.lang.String getName()
- Returns the method name.
- Returns:
- the method name
getReturnType
public java.lang.String getReturnType()
- Returns the method return type.
- Returns:
- the method return type
getParameters
public java.util.List getParameters()
- Returns the list of parameters.
- Returns:
- the list of parameters
getChangedParameters
public java.util.Hashtable getChangedParameters()
- Returns the hashtable of changed parameters.
- Returns:
- the hashtable of changed parameters
getReturnVariableName
public java.lang.String getReturnVariableName()
- Returns the return variable name.
- Returns:
- the return variable name
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
- listens and reacts to "Add", "Edit" and "Delete" buttons
- Specified by:
widgetSelected
in interface org.eclipse.swt.events.SelectionListener
widgetDefaultSelected
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
- Specified by:
widgetDefaultSelected
in interface org.eclipse.swt.events.SelectionListener
- See Also:
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)