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 ofInstrumentable
R
- 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 R
createNewRestriction()
Control
createUIArea(Composite parent)
protected abstract String
elementToID(E element)
protected abstract String
elementToName(E element)
protected abstract List<E>
getAllEntities()
Dialog
getAsDialog(Shell parentShell)
protected abstract String
getDescriptionMessage()
protected abstract String
getInitallySelectedEntityId()
protected abstract List<I>
getInstrumentablesForEntity(E entity)
InstrumentableRestriction<I>
getRestriction()
void
init()
void
init(InstrumentableRestriction<I> restriction)
protected abstract void
initialize(R restriction)
boolean
restrictionChanged()
protected abstract void
setIdToRestriction(String id)
-
-
-
Method Detail
-
init
public void init(InstrumentableRestriction<I> restriction)
- Specified by:
init
in interfaceIRestrictionUI<I extends Instrumentable>
-
init
public void init()
- Specified by:
init
in 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:
getAsDialog
in interfaceIRestrictionUI<I extends Instrumentable>
-
getDescriptionMessage
protected abstract String getDescriptionMessage()
-
getRestriction
public InstrumentableRestriction<I> getRestriction()
- Specified by:
getRestriction
in interfaceIRestrictionUI<I extends Instrumentable>
-
restrictionChanged
public boolean restrictionChanged()
- Specified by:
restrictionChanged
in interfaceIRestrictionUI<I extends Instrumentable>
-
setIdToRestriction
protected abstract void setIdToRestriction(String id)
-
createUIArea
public Control createUIArea(Composite parent)
- Specified by:
createUIArea
in interfaceIRestrictionUI<I extends Instrumentable>
-
-