vocleditor.dialog
Class SetClassifierRolePropertiesDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TitleAreaDialog
              extended by vocleditor.dialog.SetClassifierRolePropertiesDialog
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 SetClassifierRolePropertiesDialog
extends org.eclipse.jface.dialogs.TitleAreaDialog
implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.ModifyListener

Author:
bjoern, Stefan, tugstugi Dialog to modify SetSetClassifierRole properties

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
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
SetClassifierRolePropertiesDialog(org.eclipse.swt.widgets.Shell parentShell, VOCLModel.Constraint constraint, VOCLModel.SetClassifierRole setClassifierRole)
          Constructs a SetClassifierPropertiesDialog
 
Method Summary
 java.util.List getAttributes()
          Returns the list of attributes.
 java.util.Hashtable getChangedVariables()
          Returns the hashtable of the changed variables.
 java.lang.String getClassifierName()
          Returns the set classifier role name.
 java.lang.String getClassifierType()
          Returns the set classifier role type.
 java.lang.String getIteratorVariable()
          Returns the name of the iterator variable.
 java.lang.String getOpKind()
          Returns the operation kind of the set classifier role.
 java.lang.String getSizeVariable()
          Returns the name of the size variable.
 java.lang.String getSumVariable()
          Returns the name of the sum variable.
 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
 

Constructor Detail

SetClassifierRolePropertiesDialog

public SetClassifierRolePropertiesDialog(org.eclipse.swt.widgets.Shell parentShell,
                                         VOCLModel.Constraint constraint,
                                         VOCLModel.SetClassifierRole setClassifierRole)
Constructs a SetClassifierPropertiesDialog

Parameters:
parentShell - the parent shell
constraint - the constraint
setClassifierRole - the SetClassifierRole to be shown/modified
Method Detail

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 set classifier role name.

Returns:
the set classifier role name

getClassifierType

public java.lang.String getClassifierType()
Returns the set classifier role type.

Returns:
the set classifier role type

getOpKind

public java.lang.String getOpKind()
Returns the operation kind of the set classifier role.

Returns:
the operation kind of the set classifier role

getSizeVariable

public java.lang.String getSizeVariable()
Returns the name of the size variable.

Returns:
the name of the size variable

getIteratorVariable

public java.lang.String getIteratorVariable()
Returns the name of the iterator variable.

Returns:
the name of the iterator variable

getSumVariable

public java.lang.String getSumVariable()
Returns the name of the sum variable.

Returns:
the name of the sum variable

getChangedVariables

public java.util.Hashtable getChangedVariables()
Returns the hashtable of the changed variables.

Returns:
the hashtable of the changed variables

getAttributes

public java.util.List getAttributes()
Returns the list of attributes.

Returns:
the list of attribtues

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)