Class SingleElementsRestrictionUI<I extends Instrumentable,R extends InstrumentableRestriction<I>,E>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.restrictions.SingleElementsRestrictionUI<I,R,E>
-
- Type Parameters:
I- the handled type ofInstrumentableR- the restriction typeE- the type of element to be selecteds
- All Implemented Interfaces:
IRestrictionUI<I>
- Direct Known Subclasses:
ActionAssemblyContextRestrictionUI,ActionTypeExclusionUI,ResourceAssemblyContextRestrictionUI,SingleActionRestrictionUI,SingleUserActionRestrictionUI,UserActionTypeExclusionUI
public abstract class SingleElementsRestrictionUI<I extends Instrumentable,R extends InstrumentableRestriction<I>,E> extends Object implements IRestrictionUI<I>
-
-
Field Summary
-
Fields inherited from interface edu.kit.ipd.sdq.eventsim.instrumentation.specification.restriction.IRestrictionUI
EXTENSION_POINT_ID
-
-
Constructor Summary
Constructors Constructor Description SingleElementsRestrictionUI()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RcreateNewRestriction()ControlcreateUIArea(Composite parent)protected abstract StringelementToID(E element)protected abstract StringelementToName(E element)protected abstract List<E>getAllEntities()DialoggetAsDialog(Shell parentShell)protected abstract StringgetDescriptionMessage()protected abstract StringgetInitallySelectedEntityId()protected abstract List<I>getInstrumentablesForEntity(E entity)InstrumentableRestriction<I>getRestriction()voidinit()voidinit(InstrumentableRestriction<I> restriction)protected abstract voidinitialize(R restriction)booleanrestrictionChanged()protected abstract voidsetIdToRestriction(String id)
-
-
-
Method Detail
-
init
public void init(InstrumentableRestriction<I> restriction)
- Specified by:
initin interfaceIRestrictionUI<I extends Instrumentable>
-
init
public void init()
- Specified by:
initin interfaceIRestrictionUI<I extends Instrumentable>
-
createNewRestriction
protected abstract R createNewRestriction()
-
getInitallySelectedEntityId
protected abstract String getInitallySelectedEntityId()
-
initialize
protected abstract void initialize(R restriction)
-
getAsDialog
public Dialog getAsDialog(Shell parentShell)
- Specified by:
getAsDialogin interfaceIRestrictionUI<I extends Instrumentable>
-
getDescriptionMessage
protected abstract String getDescriptionMessage()
-
getRestriction
public InstrumentableRestriction<I> getRestriction()
- Specified by:
getRestrictionin interfaceIRestrictionUI<I extends Instrumentable>
-
restrictionChanged
public boolean restrictionChanged()
- Specified by:
restrictionChangedin interfaceIRestrictionUI<I extends Instrumentable>
-
setIdToRestriction
protected abstract void setIdToRestriction(String id)
-
createUIArea
public Control createUIArea(Composite parent)
- Specified by:
createUIAreain interfaceIRestrictionUI<I extends Instrumentable>
-
-