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;
}
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));
}
Aggregations