|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.AbstractTriggerState
de.cau.cs.kieler.core.model.triggers.PartTrigger.PartState
public static class PartTrigger.PartState
Trigger states containing information of the current active work bench part.
Constructor Summary | |
---|---|
PartTrigger.PartState()
Default constructor. |
|
PartTrigger.PartState(IWorkbenchPart theCurrentActivePart,
IEditorPart theCurrentActiveEditorPart,
PartTrigger.EventType theEventType)
Constructor taking the part to be delivered to combination. |
Method Summary | ||
---|---|---|
void |
copyProperties(IPropertyHolder holder)
Copy all properties from another property holder to this one. |
|
boolean |
editorIsActivePart()
Convenience tester, whether current active editor is current actual active workbench part. |
|
Map<IProperty<?>,Object> |
getAllProperties()
Returns a map of all assigned properties with associated values. |
|
IEditorPart |
getEditorPart()
|
|
PartTrigger.EventType |
getEventType()
|
|
IWorkbenchPart |
getPart()
|
|
|
getProperty(IProperty<T> property)
Retrieves a property value. |
|
Class<? extends ITrigger> |
getTriggerClass()
Get the trigger class associated with this trigger state. |
|
void |
setProperty(IProperty<?> property,
Object value)
Sets a property value. |
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractTriggerState |
---|
finish, getKeyClass, getSequenceNumber, merge, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PartTrigger.PartState()
public PartTrigger.PartState(IWorkbenchPart theCurrentActivePart, IEditorPart theCurrentActiveEditorPart, PartTrigger.EventType theEventType)
theCurrentActivePart
- the currently active workbench part.theCurrentActiveEditorPart
- the currently active editor part.theEventType
- indicates the kind of the occurred event.Method Detail |
---|
public IWorkbenchPart getPart()
public IEditorPart getEditorPart()
public PartTrigger.EventType getEventType()
public boolean editorIsActivePart()
public Class<? extends ITrigger> getTriggerClass()
getTriggerClass
in interface ITriggerState
public <T> T getProperty(IProperty<T> property)
getProperty
in interface IPropertyHolder
T
- type of propertyproperty
- the property to get
public void setProperty(IProperty<?> property, Object value)
setProperty
in interface IPropertyHolder
property
- the property to setvalue
- the new valuepublic void copyProperties(IPropertyHolder holder)
copyProperties
in interface IPropertyHolder
holder
- another property holderpublic Map<IProperty<?>,Object> getAllProperties()
getAllProperties
in interface IPropertyHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |