F
- the field typepublic abstract class EntitySelector<F extends AbstractParameter> extends AbstractSelector<EntityDefinition>
Constructor and Description |
---|
EntitySelector(SchemaSpaceID ssid,
F field,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.viewers.ViewerFilter[] filters)
Create an entity selector.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Entity |
createEntity(EntityDefinition element)
Create an entity for the given entity definition
|
protected abstract EntityDialog |
createEntityDialog(org.eclipse.swt.widgets.Shell parentShell,
SchemaSpaceID ssid,
F field)
Create the dialog for selecting an entity.
|
protected AbstractViewerSelectionDialog<EntityDefinition,?> |
createSelectionDialog(org.eclipse.swt.widgets.Shell parentShell)
Create the dialog for selecting an entity.
|
Entity |
getEntity()
Get the selected entity
|
F |
getField()
Get the field definition associated with the selector.
|
accepts, addSelectionChangedListener, fireSelectionChange, getControl, getSelectedObject, getSelection, removeSelectionChangedListener, setSelection
public EntitySelector(SchemaSpaceID ssid, F field, org.eclipse.swt.widgets.Composite parent, org.eclipse.jface.viewers.ViewerFilter[] filters)
ssid
- the schema spacefield
- the field definition, may be null
parent
- the parent compositefilters
- the viewer filterspublic F getField()
protected AbstractViewerSelectionDialog<EntityDefinition,?> createSelectionDialog(org.eclipse.swt.widgets.Shell parentShell)
AbstractSelector
createSelectionDialog
in class AbstractSelector<EntityDefinition>
parentShell
- the parent shell for the dialogAbstractSelector.createSelectionDialog(Shell)
protected abstract EntityDialog createEntityDialog(org.eclipse.swt.widgets.Shell parentShell, SchemaSpaceID ssid, F field)
parentShell
- the parent shell for the dialogssid
- the schema spacefield
- the field definitionpublic Entity getEntity()
null
protected abstract Entity createEntity(EntityDefinition element)
element
- the entity definitionBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a