vocleditor.dialog
Class ClassifierPropertiesDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TitleAreaDialog
vocleditor.dialog.ClassifierPropertiesDialog
- 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 ClassifierPropertiesDialog
- extends org.eclipse.jface.dialogs.TitleAreaDialog
- implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.ModifyListener
- Author:
- bjoern, Stefan
Dialog to modify ClassifierRole 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 |
ClassifierPropertiesDialog(org.eclipse.swt.widgets.Shell parentShell,
VOCLModel.Constraint constraint,
VOCLModel.ClassifierRole classifierRole)
Constructs a ClassifierPropertiesDialog |
Method Summary |
java.util.List |
getAttributes()
Returns the list of attributes. |
java.util.Hashtable |
getChangedVariables()
Returns the hashtable of changed variables. |
java.lang.String |
getClassifierName()
Returns the classifier role name. |
java.lang.String |
getClassifierType()
Returns the classifier role type. |
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 |
ClassifierPropertiesDialog
public ClassifierPropertiesDialog(org.eclipse.swt.widgets.Shell parentShell,
VOCLModel.Constraint constraint,
VOCLModel.ClassifierRole classifierRole)
- Constructs a ClassifierPropertiesDialog
- Parameters:
parentShell
- the parent shellconstraint
- the constraintclassifierRole
- the ClassifierRole 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
getClassifierName
public java.lang.String getClassifierName()
- Returns the classifier role name.
- Returns:
- the classifier role name
getClassifierType
public java.lang.String getClassifierType()
- Returns the classifier role type.
- Returns:
- the classifier role type
getChangedVariables
public java.util.Hashtable getChangedVariables()
- Returns the hashtable of changed variables.
- Returns:
- the hashtable of changed variables
getAttributes
public java.util.List getAttributes()
- Returns the list of attributes.
- Returns:
- the list of attributes
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