|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.service.entity.internal.EntityDefinitionServiceDecorator
eu.esdihumboldt.hale.ui.service.entity.internal.EntityDefinitionServiceUndoSupport
public class EntityDefinitionServiceUndoSupport
Decorator that adds undo/redo support to an entity definition service.
Field Summary |
---|
Fields inherited from class eu.esdihumboldt.hale.ui.service.entity.internal.EntityDefinitionServiceDecorator |
---|
entityDefinitionService |
Constructor Summary | |
---|---|
EntityDefinitionServiceUndoSupport(EntityDefinitionService entityDefinitionService)
Create undo/redo support for the given entity definition service |
Method Summary | |
---|---|
EntityDefinition |
addConditionContext(EntityDefinition sibling,
Filter filter)
Add a new condition context for the given entity definition and create a new sibling associated to the new context. |
EntityDefinition |
addIndexContext(EntityDefinition sibling,
Integer index)
Add a new index context for the given entity definition and create a new sibling associated to the new context. |
EntityDefinition |
addNamedContext(EntityDefinition sibling)
Add a new named instance context for the given entity definition and create a new sibling associated to the new context. |
protected void |
executeOperation(org.eclipse.core.commands.operations.IUndoableOperation operation)
Execute an operation. |
void |
removeContext(EntityDefinition entity)
Remove the instance context associated with the given entity definition (if possible). |
Methods inherited from class eu.esdihumboldt.hale.ui.service.entity.internal.EntityDefinitionServiceDecorator |
---|
addListener, getChildren, getParent, getTypeEntities, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityDefinitionServiceUndoSupport(EntityDefinitionService entityDefinitionService)
entityDefinitionService
- the entity definition serviceMethod Detail |
---|
public EntityDefinition addConditionContext(EntityDefinition sibling, Filter filter)
EntityDefinitionService
addConditionContext
in interface EntityDefinitionService
addConditionContext
in class EntityDefinitionServiceDecorator
sibling
- the entity definition which is a sibling of the entity
definition to createfilter
- the condition filter
EntityDefinitionServiceDecorator.addConditionContext(eu.esdihumboldt.hale.common.align.model.EntityDefinition,
eu.esdihumboldt.hale.common.instance.model.Filter)
public EntityDefinition addIndexContext(EntityDefinition sibling, Integer index)
EntityDefinitionService
addIndexContext
in interface EntityDefinitionService
addIndexContext
in class EntityDefinitionServiceDecorator
sibling
- the entity definition which is a sibling of the entity
definition to createindex
- the property index associated to the context, if
null
will be determined automatically
EntityDefinitionServiceDecorator.addIndexContext(eu.esdihumboldt.hale.common.align.model.EntityDefinition,
java.lang.Integer)
public EntityDefinition addNamedContext(EntityDefinition sibling)
EntityDefinitionService
addNamedContext
in interface EntityDefinitionService
addNamedContext
in class EntityDefinitionServiceDecorator
sibling
- the entity definition which is a sibling of the entity
definition to create
EntityDefinitionServiceDecorator.addNamedContext(eu.esdihumboldt.hale.common.align.model.EntityDefinition)
public void removeContext(EntityDefinition entity)
EntityDefinitionService
removeContext
in interface EntityDefinitionService
removeContext
in class EntityDefinitionServiceDecorator
entity
- the entity definition or null
if creating an
instance context is not possible FIXME report success/failure?EntityDefinitionServiceDecorator.removeContext(eu.esdihumboldt.hale.common.align.model.EntityDefinition)
protected void executeOperation(org.eclipse.core.commands.operations.IUndoableOperation operation)
operation
- the operation to execute
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |