/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { TimerScript timerScript = (TimerScript)object; return new StyledString ( getString ( "_UI_TimerScript_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " ).append ( Long.toString ( timerScript.getPeriod () ) ); //$NON-NLS-1$ //$NON-NLS-2$ }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public TimerScript getTimerScript () { if ( timerScript != null && timerScript.eIsProxy () ) { InternalEObject oldTimerScript = (InternalEObject)timerScript; timerScript = (TimerScript)eResolveProxy ( oldTimerScript ); if ( timerScript != oldTimerScript ) { InternalEObject newTimerScript = (InternalEObject)timerScript; NotificationChain msgs = oldTimerScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__TIMER_SCRIPT, null, null ); if ( newTimerScript.eInternalContainer () == null ) { msgs = newTimerScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__TIMER_SCRIPT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.SCRIPT_MODULE__TIMER_SCRIPT, oldTimerScript, timerScript ) ); } } return timerScript; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public TimerScript getTimerScript () { if ( timerScript != null && timerScript.eIsProxy () ) { InternalEObject oldTimerScript = (InternalEObject)timerScript; timerScript = (TimerScript)eResolveProxy ( oldTimerScript ); if ( timerScript != oldTimerScript ) { InternalEObject newTimerScript = (InternalEObject)timerScript; NotificationChain msgs = oldTimerScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__TIMER_SCRIPT, null, null ); if ( newTimerScript.eInternalContainer () == null ) { msgs = newTimerScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__TIMER_SCRIPT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.SCRIPT_MODULE__TIMER_SCRIPT, oldTimerScript, timerScript ) ); } } return timerScript; }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { TimerScript timerScript = (TimerScript)object; return new StyledString ( getString ( "_UI_TimerScript_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " ).append ( Long.toString ( timerScript.getPeriod () ) ); //$NON-NLS-1$ //$NON-NLS-2$ }