Search in sources :

Example 6 with Trigger

use of org.yakindu.sct.model.sgraph.Trigger in project statecharts by Yakindu.

the class TransitionImpl method basicSetTrigger.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTrigger(Trigger newTrigger, NotificationChain msgs) {
    Trigger oldTrigger = trigger;
    trigger = newTrigger;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SGraphPackage.TRANSITION__TRIGGER, oldTrigger, newTrigger);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Trigger(org.yakindu.sct.model.sgraph.Trigger) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

Trigger (org.yakindu.sct.model.sgraph.Trigger)6 ReactionEffect (org.yakindu.sct.model.stext.stext.ReactionEffect)3 ReactionTrigger (org.yakindu.sct.model.stext.stext.ReactionTrigger)3 EObject (org.eclipse.emf.ecore.EObject)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 Reaction (org.yakindu.sct.model.sgraph.Reaction)2 EventSpec (org.yakindu.sct.model.stext.stext.EventSpec)2 Diagram (org.eclipse.gmf.runtime.notation.Diagram)1 Test (org.junit.Test)1 Expression (org.yakindu.base.expressions.expressions.Expression)1 Scope (org.yakindu.sct.model.sgraph.Scope)1 State (org.yakindu.sct.model.sgraph.State)1 Transition (org.yakindu.sct.model.sgraph.Transition)1 EntryEvent (org.yakindu.sct.model.stext.stext.EntryEvent)1 ExitEvent (org.yakindu.sct.model.stext.stext.ExitEvent)1 InterfaceScope (org.yakindu.sct.model.stext.stext.InterfaceScope)1 InternalScope (org.yakindu.sct.model.stext.stext.InternalScope)1 LocalReaction (org.yakindu.sct.model.stext.stext.LocalReaction)1