Humboldt Alignment Editor 2.5.0

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

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

public class TypeEntitySelector
extends EntitySelector<TypeParameter>

Entity selector for Type entities

Author:
Simon Templer

Constructor Summary
TypeEntitySelector(SchemaSpaceID ssid, TypeParameter field, org.eclipse.swt.widgets.Composite parent)
          Create an entity selector for Type 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, TypeParameter field)
          Create the dialog for selecting an entity.
 
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

TypeEntitySelector

public TypeEntitySelector(SchemaSpaceID ssid,
                          TypeParameter field,
                          org.eclipse.swt.widgets.Composite parent)
Create an entity selector for Type entities

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

createEntityDialog

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

Specified by:
createEntityDialog in class EntitySelector<TypeParameter>
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<TypeParameter>
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