コード例 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public InputPin getTarget() {
   if (target != null && target.eIsProxy()) {
     InternalEObject oldTarget = (InternalEObject) target;
     target = (InputPin) eResolveProxy(oldTarget);
     if (target != oldTarget) {
       InternalEObject newTarget = (InternalEObject) target;
       NotificationChain msgs =
           oldTarget.eInverseRemove(
               this, EOPPOSITE_FEATURE_BASE - UMLPackage.SEND_SIGNAL_ACTION__TARGET, null, null);
       if (newTarget.eInternalContainer() == null) {
         msgs =
             newTarget.eInverseAdd(
                 this, EOPPOSITE_FEATURE_BASE - UMLPackage.SEND_SIGNAL_ACTION__TARGET, null, msgs);
       }
       if (msgs != null) msgs.dispatch();
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this,
                 Notification.RESOLVE,
                 UMLPackage.SEND_SIGNAL_ACTION__TARGET,
                 oldTarget,
                 target));
     }
   }
   return target;
 }
コード例 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public InputPin getValue() {
   if (value != null && value.eIsProxy()) {
     InternalEObject oldValue = (InternalEObject) value;
     value = (InputPin) eResolveProxy(oldValue);
     if (value != oldValue) {
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this, Notification.RESOLVE, UMLPackage.QUALIFIER_VALUE__VALUE, oldValue, value));
     }
   }
   return value;
 }