Esempio n. 1
0
        public override void eSet(int featureID, object newValue)
        {
            switch (featureID)
            {
            case Java_PackageImpl.ENHANCEDFORSTATEMENT_BODY:
                body = (Statement)newValue;
                return;

            case Java_PackageImpl.ENHANCEDFORSTATEMENT_EXPRESSION:
                expression = (Expression)newValue;
                return;

            case Java_PackageImpl.ENHANCEDFORSTATEMENT_PARAMETER:
                parameter = (SingleVariableDeclaration)newValue;
                return;
            }
            base.eSet(featureID, newValue);
        }
        public NotificationChain basicSetException(SingleVariableDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _exception;

            _exception = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.CATCHCLAUSE_EXCEPTION, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
Esempio n. 3
0
        public NotificationChain basicSetParameter(SingleVariableDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _parameter;

            _parameter = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ENHANCEDFORSTATEMENT_PARAMETER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
Esempio n. 4
0
 public NotificationChain basicSetSingleVariableDeclaration(SingleVariableDeclaration newobj, NotificationChain msgs)
 {
     msgs = eBasicSetContainer((InternalEObject)newobj, Java_PackageImpl.MODIFIER_SINGLEVARIABLEDECLARATION, msgs);
     return(msgs);
 }