コード例 #1
0
        public NotificationChain basicSetMember(AnnotationTypeMemberDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _member;

            _member = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ANNOTATIONMEMBERVALUEPAIR_MEMBER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #2
0
        public NotificationChain basicSetSuperClass(TypeAccess newobj, NotificationChain msgs)
        {
            var oldobj = _superClass;

            _superClass = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.CLASSDECLARATION_SUPERCLASS, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #3
0
        public NotificationChain basicSetType(TypeAccess newobj, NotificationChain msgs)
        {
            var oldobj = _type;

            _type = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ABSTRACTVARIABLESCONTAINER_TYPE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #4
0
        public NotificationChain basicSetBound(TypeAccess newobj, NotificationChain msgs)
        {
            var oldobj = _bound;

            _bound = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.WILDCARDTYPE_BOUND, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #5
0
        public NotificationChain basicSetQualifier(Expression newobj, NotificationChain msgs)
        {
            var oldobj = _qualifier;

            _qualifier = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.SINGLEVARIABLEACCESS_QUALIFIER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #6
0
        public NotificationChain basicSetReturnType(TypeAccess newobj, NotificationChain msgs)
        {
            var oldobj = _returnType;

            _returnType = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.METHODDECLARATION_RETURNTYPE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #7
0
        public NotificationChain basicSetInitializer(ArrayInitializer newobj, NotificationChain msgs)
        {
            var oldobj = _initializer;

            _initializer = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ARRAYCREATION_INITIALIZER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #8
0
        public NotificationChain basicSetOriginalCompilationUnit(CompilationUnit newobj, NotificationChain msgs)
        {
            var oldobj = _originalCompilationUnit;

            _originalCompilationUnit = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ASTNODE_ORIGINALCOMPILATIONUNIT, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #9
0
        public NotificationChain basicSetOriginalClassFile(ClassFile newobj, NotificationChain msgs)
        {
            var oldobj = _originalClassFile;

            _originalClassFile = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ASTNODE_ORIGINALCLASSFILE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #10
0
        public NotificationChain basicSetDefault(Expression newobj, NotificationChain msgs)
        {
            var oldobj = _default;

            _default = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ANNOTATIONTYPEMEMBERDECLARATION_DEFAULT, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #11
0
        public NotificationChain basicSetDeclaration(AbstractTypeDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _declaration;

            _declaration = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.TYPEDECLARATIONSTATEMENT_DECLARATION, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #12
0
        public NotificationChain basicSetOperand(Expression newobj, NotificationChain msgs)
        {
            var oldobj = _operand;

            _operand = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.PREFIXEXPRESSION_OPERAND, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #13
0
        public NotificationChain basicSetElementType(TypeAccess newobj, NotificationChain msgs)
        {
            var oldobj = _elementType;

            _elementType = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ARRAYTYPE_ELEMENTTYPE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #14
0
        public NotificationChain basicSetValue(Expression newobj, NotificationChain msgs)
        {
            var oldobj = _value;

            _value = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.ANNOTATIONMEMBERVALUEPAIR_VALUE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #15
0
        public NotificationChain basicSetBody(Statement newobj, NotificationChain msgs)
        {
            var oldobj = _body;

            _body = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.LABELEDSTATEMENT_BODY, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #16
0
        public NotificationChain basicSetElement(UnresolvedItem newobj, NotificationChain msgs)
        {
            var oldobj = _element;

            _element = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.UNRESOLVEDITEMACCESS_ELEMENT, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #17
0
        public NotificationChain basicSetRedefinedMethodDeclaration(MethodDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _redefinedMethodDeclaration;

            _redefinedMethodDeclaration = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.METHODDECLARATION_REDEFINEDMETHODDECLARATION, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #18
0
        public NotificationChain basicSetQualifier(ASTNode newobj, NotificationChain msgs)
        {
            var oldobj = _qualifier;

            _qualifier = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.UNRESOLVEDITEMACCESS_QUALIFIER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #19
0
        public NotificationChain basicSetPackage(Package newobj, NotificationChain msgs)
        {
            var oldobj = _package;

            _package = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.COMPILATIONUNIT_PACKAGE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #20
0
        public NotificationChain basicSetLabel(LabeledStatement newobj, NotificationChain msgs)
        {
            var oldobj = _label;

            _label = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.BREAKSTATEMENT_LABEL, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #21
0
        public NotificationChain basicSetZero_one_no_no(Target newobj, NotificationChain msgs)
        {
            var oldobj = _zero_one_no_no;

            _zero_one_no_no = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, TestmodelPackageImpl.SOURCE_ZERO_ONE_NO_NO, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #22
0
        public NotificationChain basicSetMethod(AbstractMethodDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _method;

            _method = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.METHODREF_METHOD, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #23
0
        public NotificationChain basicSetVariable(VariableDeclaration newobj, NotificationChain msgs)
        {
            var oldobj = _variable;

            _variable = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.SINGLEVARIABLEACCESS_VARIABLE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #24
0
        public NotificationChain basicSetQualifier(TypeAccess newobj, NotificationChain msgs)
        {
            var oldobj = _qualifier;

            _qualifier = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.METHODREF_QUALIFIER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #25
0
        public NotificationChain basicSetExpression(Expression newobj, NotificationChain msgs)
        {
            var oldobj = _expression;

            _expression = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.RETURNSTATEMENT_EXPRESSION, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #26
0
        public NotificationChain basicSetField(SingleVariableAccess newobj, NotificationChain msgs)
        {
            var oldobj = _field;

            _field = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.SUPERFIELDACCESS_FIELD, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #27
0
        public NotificationChain basicSetModifier(Modifier newobj, NotificationChain msgs)
        {
            var oldobj = _modifier;

            _modifier = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.SINGLEVARIABLEDECLARATION_MODIFIER, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #28
0
        public NotificationChain basicSetType(Type newobj, NotificationChain msgs)
        {
            var oldobj = _type;

            _type = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, Java_PackageImpl.TYPEACCESS_TYPE, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #29
0
        public NotificationChain basicSetSelection(OtherClass newobj, NotificationChain msgs)
        {
            var oldobj = _selection;

            _selection = newobj;
            if (eNotificationRequired())
            {
                var notification = new ENotificationImpl(this, NotificationImpl.SET, SerializationPackageImpl.MY_CLASS__SELECTION, oldobj, newobj);
                if (msgs == null)
                {
                    msgs = notification;
                }
                else
                {
                    msgs.add(notification);
                }
            }
            return(msgs);
        }
コード例 #30
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);
        }