com.bbn.swede.editor.visualeditors.restriction
Class CombinationDialogCellEditor

java.lang.Object
  extended byDialogCellEditor
      extended bycom.bbn.swede.editor.visualeditors.restriction.CombinationDialogCellEditor

public class CombinationDialogCellEditor
extends DialogCellEditor

A dialog that accepts a IInputValidator and can be configured for integers, classes or instances, appropriately for cardinality, allValuesFrom and someValuesFrom, and hasValue restrictions, respectively.

Author:
aperezlo
See Also:
Serialized Form

Constructor Summary
CombinationDialogCellEditor(Composite parent, RestrictionEditorInspector detective, IOWLAbstractSyntaxTree oast)
          Creates a CombinationDialogCellEditor.
 
Method Summary
protected  Object openDialogBox(Control cellEditorWindow)
           
 void selectionChanged(SelectionChangedEvent event)
          This method is to determine which restriction is selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinationDialogCellEditor

public CombinationDialogCellEditor(Composite parent,
                                   RestrictionEditorInspector detective,
                                   IOWLAbstractSyntaxTree oast)
Creates a CombinationDialogCellEditor.

Parameters:
parent - the control which will host this editor
detective - the inspector used to populate this editor
oast - the OAST for the current document
Method Detail

openDialogBox

protected Object openDialogBox(Control cellEditorWindow)

selectionChanged

public void selectionChanged(SelectionChangedEvent event)
This method is to determine which restriction is selected. Knowing the currently selected restriction allows this cell editor to configure itself based upon the type of restriction (cardinality restriction, value restriction, etc.).

See Also:
ISelectionChangedListener


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.