Package org.eclipse.emf.common.notify

Examples of org.eclipse.emf.common.notify.NotificationChain


        if (newMapInternal != eInternalContainer()
                || (eContainerFeatureID() != ProjectPackage.EDIT_MANAGER__MAP_INTERNAL && newMapInternal != null)) {
            if (EcoreUtil.isAncestor(this, newMapInternal))
                throw new IllegalArgumentException(
                        "Recursive containment not allowed for " + toString()); //$NON-NLS-1$
            NotificationChain msgs = null;
            if (eInternalContainer() != null)
                msgs = eBasicRemoveFromContainer(msgs);
            if (newMapInternal != null)
                msgs = ((InternalEObject) newMapInternal).eInverseAdd(this,
                        ProjectPackage.MAP__EDIT_MANAGER_INTERNAL, Map.class, msgs);
            msgs = basicSetMapInternal(newMapInternal, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.EDIT_MANAGER__MAP_INTERNAL, newMapInternal, newMapInternal));
    }
View Full Code Here


        super.didAdd(index, newObject);
    }

    @Override
    public NotificationChain inverseAdd( Layer object, NotificationChain notifications ) {
        NotificationChain notificationChain = super.inverseAdd(object, notifications);
        if (ProjectPlugin.isDebugging(Trace.MODEL))
            ProjectPlugin
                    .trace(
                            getClass(),
                            "inverseAdd() = " + ((Layer) object).getID() + " to map " + getMap().getName(), null); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated NOT
     */
    public void setProjectInternal(Project newProjectInternal) {
        if (newProjectInternal != projectInternal) {
            NotificationChain msgs = null;

            if (projectInternal != null) {
                msgs = ((InternalEObject) projectInternal).eInverseRemove(this,
                        ProjectPackage.PROJECT__ELEMENTS_INTERNAL, Project.class, msgs);
            }
            if (newProjectInternal != null)
                msgs = ((InternalEObject) newProjectInternal).eInverseAdd(this,
                        ProjectPackage.PROJECT__ELEMENTS_INTERNAL, Project.class, msgs);
            msgs = basicSetProjectInternal(newProjectInternal, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__PROJECT_INTERNAL, newProjectInternal, newProjectInternal));
    }
View Full Code Here

     * @generated
     */
    @SuppressWarnings("deprecation")
    public void setContextModelGen(ContextModel newContextModel) {
        if (newContextModel != contextModel) {
            NotificationChain msgs = null;
            if (contextModel != null)
                msgs = ((InternalEObject) contextModel).eInverseRemove(this,
                        ProjectPackage.CONTEXT_MODEL__MAP, ContextModel.class, msgs);
            if (newContextModel != null)
                msgs = ((InternalEObject) newContextModel).eInverseAdd(this,
                        ProjectPackage.CONTEXT_MODEL__MAP, ContextModel.class, msgs);
            msgs = basicSetContextModel(newContextModel, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__CONTEXT_MODEL, newContextModel, newContextModel));
    }
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setViewportModelInternalGen(ViewportModel newViewportModelInternal) {
        if (newViewportModelInternal != viewportModelInternal) {
            NotificationChain msgs = null;
            if (viewportModelInternal != null)
                msgs = ((InternalEObject) viewportModelInternal).eInverseRemove(this,
                        RenderPackage.VIEWPORT_MODEL__MAP_INTERNAL, ViewportModel.class, msgs);
            if (newViewportModelInternal != null)
                msgs = ((InternalEObject) newViewportModelInternal).eInverseAdd(this,
                        RenderPackage.VIEWPORT_MODEL__MAP_INTERNAL, ViewportModel.class, msgs);
            msgs = basicSetViewportModelInternal(newViewportModelInternal, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__VIEWPORT_MODEL_INTERNAL, newViewportModelInternal,
                    newViewportModelInternal));
    }
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setLayerFactory(LayerFactory newLayerFactory) {
        if (newLayerFactory != layerFactory) {
            NotificationChain msgs = null;
            if (layerFactory != null)
                msgs = ((InternalEObject) layerFactory).eInverseRemove(this,
                        ProjectPackage.LAYER_FACTORY__MAP, LayerFactory.class, msgs);
            if (newLayerFactory != null)
                msgs = ((InternalEObject) newLayerFactory).eInverseAdd(this,
                        ProjectPackage.LAYER_FACTORY__MAP, LayerFactory.class, msgs);
            msgs = basicSetLayerFactory(newLayerFactory, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__LAYER_FACTORY, newLayerFactory, newLayerFactory));
    }
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setEditManagerInternal(EditManager newEditManagerInternal) {
        if (newEditManagerInternal != editManagerInternal) {
            NotificationChain msgs = null;
            if (editManagerInternal != null)
                msgs = ((InternalEObject) editManagerInternal).eInverseRemove(this,
                        ProjectPackage.EDIT_MANAGER__MAP_INTERNAL, EditManager.class, msgs);
            if (newEditManagerInternal != null)
                msgs = ((InternalEObject) newEditManagerInternal).eInverseAdd(this,
                        ProjectPackage.EDIT_MANAGER__MAP_INTERNAL, EditManager.class, msgs);
            msgs = basicSetEditManagerInternal(newEditManagerInternal, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__EDIT_MANAGER_INTERNAL, newEditManagerInternal,
                    newEditManagerInternal));
    }
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setRenderManagerInternalGen(RenderManager newRenderManagerInternal) {
        if (newRenderManagerInternal != renderManagerInternal) {
            NotificationChain msgs = null;
            if (renderManagerInternal != null)
                msgs = ((InternalEObject) renderManagerInternal).eInverseRemove(this,
                        RenderPackage.RENDER_MANAGER__MAP_INTERNAL, RenderManager.class, msgs);
            if (newRenderManagerInternal != null)
                msgs = ((InternalEObject) newRenderManagerInternal).eInverseAdd(this,
                        RenderPackage.RENDER_MANAGER__MAP_INTERNAL, RenderManager.class, msgs);
            msgs = basicSetRenderManagerInternal(newRenderManagerInternal, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__RENDER_MANAGER_INTERNAL, newRenderManagerInternal,
                    newRenderManagerInternal));
    }
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setBlackBoardInternal(Blackboard newBlackBoardInternal) {
        if (newBlackBoardInternal != blackBoardInternal) {
            NotificationChain msgs = null;
            if (blackBoardInternal != null)
                msgs = ((InternalEObject) blackBoardInternal).eInverseRemove(this,
                        EOPPOSITE_FEATURE_BASE - ProjectPackage.MAP__BLACK_BOARD_INTERNAL, null,
                        msgs);
            if (newBlackBoardInternal != null)
                msgs = ((InternalEObject) newBlackBoardInternal).eInverseAdd(this,
                        EOPPOSITE_FEATURE_BASE - ProjectPackage.MAP__BLACK_BOARD_INTERNAL, null,
                        msgs);
            msgs = basicSetBlackBoardInternal(newBlackBoardInternal, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__BLACK_BOARD_INTERNAL, newBlackBoardInternal,
                    newBlackBoardInternal));
    }
View Full Code Here

        if (newMap != eInternalContainer()
                || (eContainerFeatureID() != ProjectPackage.CONTEXT_MODEL__MAP && newMap != null)) {
            if (EcoreUtil.isAncestor(this, newMap))
                throw new IllegalArgumentException(
                        "Recursive containment not allowed for " + toString()); //$NON-NLS-1$
            NotificationChain msgs = null;
            if (eInternalContainer() != null)
                msgs = eBasicRemoveFromContainer(msgs);
            if (newMap != null)
                msgs = ((InternalEObject) newMap).eInverseAdd(this,
                        ProjectPackage.MAP__CONTEXT_MODEL, Map.class, msgs);
            msgs = basicSetMap(newMap, msgs);
            if (msgs != null)
                msgs.dispatch();
        } else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.CONTEXT_MODEL__MAP, newMap, newMap));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.notify.NotificationChain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.