Search in sources :

Example 1 with TimeEventType

use of org.yakindu.sct.model.stext.stext.TimeEventType in project statecharts by Yakindu.

the class TimeEventSpecItemProvider method getText.

/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getText(Object object) {
    TimeEventType labelValue = ((TimeEventSpec) object).getType();
    String label = labelValue == null ? null : labelValue.toString();
    return label == null || label.length() == 0 ? getString("_UI_TimeEventSpec_type") : getString("_UI_TimeEventSpec_type") + " " + label;
}
Also used : TimeEventType(org.yakindu.sct.model.stext.stext.TimeEventType) TimeEventSpec(org.yakindu.sct.model.stext.stext.TimeEventSpec)

Example 2 with TimeEventType

use of org.yakindu.sct.model.stext.stext.TimeEventType in project statecharts by Yakindu.

the class TimeEventSpecImpl method setType.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setType(TimeEventType newType) {
    TimeEventType oldType = type;
    type = newType == null ? TYPE_EDEFAULT : newType;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, StextPackage.TIME_EVENT_SPEC__TYPE, oldType, type));
}
Also used : TimeEventType(org.yakindu.sct.model.stext.stext.TimeEventType) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

TimeEventType (org.yakindu.sct.model.stext.stext.TimeEventType)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 TimeEventSpec (org.yakindu.sct.model.stext.stext.TimeEventSpec)1