Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.function.common
Class PropertyEntitySelector

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.util.selector.AbstractSelector<EntityDefinition>
      extended by eu.esdihumboldt.hale.ui.function.common.EntitySelector<PropertyParameter>
          extended by eu.esdihumboldt.hale.ui.function.common.PropertyEntitySelector
All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionProvider

public class PropertyEntitySelector
extends EntitySelector<PropertyParameter>

Entity selector for Property entities

Author:
Simon Templer

Constructor Summary
PropertyEntitySelector(SchemaSpaceID ssid, PropertyParameter field, org.eclipse.swt.widgets.Composite parent, TypeEntityDefinition parentType)
          Create an entity selector for Property entities
 
Method Summary
protected  Entity createEntity(EntityDefinition element)
          Create an entity for the given entity definition
protected  EntityDialog createEntityDialog(org.eclipse.swt.widgets.Shell parentShell, SchemaSpaceID ssid, PropertyParameter field)
          Create the dialog for selecting an entity.
 void setParentType(TypeEntityDefinition parentType)
          Set the parent type
 
Methods inherited from class eu.esdihumboldt.hale.ui.function.common.EntitySelector
createSelectionDialog, getEntity, getField
 
Methods inherited from class eu.esdihumboldt.hale.ui.util.selector.AbstractSelector
accepts, addSelectionChangedListener, fireSelectionChange, getControl, getSelectedObject, getSelection, removeSelectionChangedListener, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEntitySelector

public PropertyEntitySelector(SchemaSpaceID ssid,
                              PropertyParameter field,
                              org.eclipse.swt.widgets.Composite parent,
                              TypeEntityDefinition parentType)
Create an entity selector for Property entities

Parameters:
ssid - the schema space
field - the field definition, may be null
parent - the parent composite
parentType - the parent type
Method Detail

setParentType

public void setParentType(TypeEntityDefinition parentType)
Set the parent type

Parameters:
parentType - the parentType to set

createEntityDialog

protected EntityDialog createEntityDialog(org.eclipse.swt.widgets.Shell parentShell,
                                          SchemaSpaceID ssid,
                                          PropertyParameter field)
Description copied from class: EntitySelector
Create the dialog for selecting an entity.

Specified by:
createEntityDialog in class EntitySelector<PropertyParameter>
Parameters:
parentShell - the parent shell for the dialog
ssid - the schema space
field - the field definition
Returns:
the entity dialog
See Also:
EntitySelector.createEntityDialog(Shell, SchemaSpaceID, AbstractParameter)

createEntity

protected Entity createEntity(EntityDefinition element)
Description copied from class: EntitySelector
Create an entity for the given entity definition

Specified by:
createEntity in class EntitySelector<PropertyParameter>
Parameters:
element - the entity definition
Returns:
the entity
See Also:
EntitySelector.createEntity(EntityDefinition)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d