org.eclipse.emf.common.notify.NotificationChain Java Examples
The following examples show how to use
org.eclipse.emf.common.notify.NotificationChain.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GPortImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setPosition(GPoint newPosition) { if (newPosition != position) { NotificationChain msgs = null; if (position != null) msgs = ((InternalEObject) position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GPORT__POSITION, null, msgs); if (newPosition != null) msgs = ((InternalEObject) newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GPORT__POSITION, null, msgs); msgs = basicSetPosition(newPosition, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GPORT__POSITION, newPosition, newPosition)); }
Example #2
Source File: GLabelImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GLABEL__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GLABEL__PARENT, newParent, newParent)); }
Example #3
Source File: DiagramElementImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override public void setSemanticElement(SemanticProxy newSemanticElement) { if (newSemanticElement != semanticElement) { NotificationChain msgs = null; if (semanticElement != null) msgs = ((InternalEObject) semanticElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WfnotationPackage.DIAGRAM_ELEMENT__SEMANTIC_ELEMENT, null, msgs); if (newSemanticElement != null) msgs = ((InternalEObject) newSemanticElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WfnotationPackage.DIAGRAM_ELEMENT__SEMANTIC_ELEMENT, null, msgs); msgs = basicSetSemanticElement(newSemanticElement, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WfnotationPackage.DIAGRAM_ELEMENT__SEMANTIC_ELEMENT, newSemanticElement, newSemanticElement)); }
Example #4
Source File: ShapeImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override public void setSize(Dimension newSize) { if (newSize != size) { NotificationChain msgs = null; if (size != null) msgs = ((InternalEObject) size).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WfnotationPackage.SHAPE__SIZE, null, msgs); if (newSize != null) msgs = ((InternalEObject) newSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WfnotationPackage.SHAPE__SIZE, null, msgs); msgs = basicSetSize(newSize, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WfnotationPackage.SHAPE__SIZE, newSize, newSize)); }
Example #5
Source File: Cursor.java From nebula with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public void setTimeline(ITimeline newTimeline) { if (newTimeline != eInternalContainer() || (eContainerFeatureID() != ITimelinePackage.CURSOR__TIMELINE && newTimeline != null)) { if (EcoreUtil.isAncestor(this, newTimeline)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newTimeline != null) msgs = ((InternalEObject)newTimeline).eInverseAdd(this, ITimelinePackage.TIMELINE__CURSORS, ITimeline.class, msgs); msgs = basicSetTimeline(newTimeline, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ITimelinePackage.CURSOR__TIMELINE, newTimeline, newTimeline)); }
Example #6
Source File: Track.java From nebula with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public void setTimeline(ITimeline newTimeline) { if (newTimeline != eInternalContainer() || (eContainerFeatureID() != ITimelinePackage.TRACK__TIMELINE && newTimeline != null)) { if (EcoreUtil.isAncestor(this, newTimeline)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newTimeline != null) msgs = ((InternalEObject)newTimeline).eInverseAdd(this, ITimelinePackage.TIMELINE__TRACKS, ITimeline.class, msgs); msgs = basicSetTimeline(newTimeline, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ITimelinePackage.TRACK__TIMELINE, newTimeline, newTimeline)); }
Example #7
Source File: GCompartmentImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setPosition(GPoint newPosition) { if (newPosition != position) { NotificationChain msgs = null; if (position != null) msgs = ((InternalEObject) position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GCOMPARTMENT__POSITION, null, msgs); if (newPosition != null) msgs = ((InternalEObject) newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GCOMPARTMENT__POSITION, null, msgs); msgs = basicSetPosition(newPosition, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GCOMPARTMENT__POSITION, newPosition, newPosition)); }
Example #8
Source File: GCompartmentImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case GraphPackage.GCOMPARTMENT__CHILDREN: return ((InternalEList<?>) getChildren()).basicRemove(otherEnd, msgs); case GraphPackage.GCOMPARTMENT__PARENT: return basicSetParent(null, msgs); case GraphPackage.GCOMPARTMENT__POSITION: return basicSetPosition(null, msgs); case GraphPackage.GCOMPARTMENT__SIZE: return basicSetSize(null, msgs); case GraphPackage.GCOMPARTMENT__LAYOUT_OPTIONS: return basicSetLayoutOptions(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example #9
Source File: GPreRenderedElementImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GPRE_RENDERED_ELEMENT__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GPRE_RENDERED_ELEMENT__PARENT, newParent, newParent)); }
Example #10
Source File: GNodeImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GNODE__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GNODE__PARENT, newParent, newParent)); }
Example #11
Source File: GNodeImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setSize(GDimension newSize) { if (newSize != size) { NotificationChain msgs = null; if (size != null) msgs = ((InternalEObject) size).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GNODE__SIZE, null, msgs); if (newSize != null) msgs = ((InternalEObject) newSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GNODE__SIZE, null, msgs); msgs = basicSetSize(newSize, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GNODE__SIZE, newSize, newSize)); }
Example #12
Source File: TimelineEvent.java From nebula with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public void setLane(ILane newLane) { if (newLane != eInternalContainer() || (eContainerFeatureID() != ITimelinePackage.TIMELINE_EVENT__LANE && newLane != null)) { if (EcoreUtil.isAncestor(this, newLane)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newLane != null) msgs = ((InternalEObject)newLane).eInverseAdd(this, ITimelinePackage.LANE__TIME_EVENTS, ILane.class, msgs); msgs = basicSetLane(newLane, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ITimelinePackage.TIMELINE_EVENT__LANE, newLane, newLane)); }
Example #13
Source File: GGraphImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setPosition(GPoint newPosition) { if (newPosition != position) { NotificationChain msgs = null; if (position != null) msgs = ((InternalEObject) position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GGRAPH__POSITION, null, msgs); if (newPosition != null) msgs = ((InternalEObject) newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GGRAPH__POSITION, null, msgs); msgs = basicSetPosition(newPosition, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GGRAPH__POSITION, newPosition, newPosition)); }
Example #14
Source File: GGraphImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setLayoutOptions(GLayoutOptions newLayoutOptions) { if (newLayoutOptions != layoutOptions) { NotificationChain msgs = null; if (layoutOptions != null) msgs = ((InternalEObject) layoutOptions).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GGRAPH__LAYOUT_OPTIONS, null, msgs); if (newLayoutOptions != null) msgs = ((InternalEObject) newLayoutOptions).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GGRAPH__LAYOUT_OPTIONS, null, msgs); msgs = basicSetLayoutOptions(newLayoutOptions, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GGRAPH__LAYOUT_OPTIONS, newLayoutOptions, newLayoutOptions)); }
Example #15
Source File: GIssueMarkerImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GISSUE_MARKER__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GISSUE_MARKER__PARENT, newParent, newParent)); }
Example #16
Source File: GCompartmentImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GCOMPARTMENT__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GCOMPARTMENT__PARENT, newParent, newParent)); }
Example #17
Source File: GIssueMarkerImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case GraphPackage.GISSUE_MARKER__CHILDREN: return ((InternalEList<?>) getChildren()).basicRemove(otherEnd, msgs); case GraphPackage.GISSUE_MARKER__PARENT: return basicSetParent(null, msgs); case GraphPackage.GISSUE_MARKER__POSITION: return basicSetPosition(null, msgs); case GraphPackage.GISSUE_MARKER__SIZE: return basicSetSize(null, msgs); case GraphPackage.GISSUE_MARKER__ISSUES: return ((InternalEList<?>) getIssues()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example #18
Source File: AbapGitStagingImpl.java From ADT_Frontend with MIT License | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case IAbapgitstagingPackage.ABAP_GIT_STAGING__UNSTAGED_OBJECTS: return basicSetUnstagedObjects(null, msgs); case IAbapgitstagingPackage.ABAP_GIT_STAGING__STAGED_OBJECTS: return basicSetStagedObjects(null, msgs); case IAbapgitstagingPackage.ABAP_GIT_STAGING__IGNORED_OBJECTS: return basicSetIgnoredObjects(null, msgs); case IAbapgitstagingPackage.ABAP_GIT_STAGING__COMMIT_MESSAGE: return basicSetCommitMessage(null, msgs); case IAbapgitstagingPackage.ABAP_GIT_STAGING__LINKS: return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example #19
Source File: GModelRootImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GMODEL_ROOT__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GMODEL_ROOT__PARENT, newParent, newParent)); }
Example #20
Source File: ShapeImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override public void setPosition(Point newPosition) { if (newPosition != position) { NotificationChain msgs = null; if (position != null) msgs = ((InternalEObject) position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WfnotationPackage.SHAPE__POSITION, null, msgs); if (newPosition != null) msgs = ((InternalEObject) newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WfnotationPackage.SHAPE__POSITION, null, msgs); msgs = basicSetPosition(newPosition, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WfnotationPackage.SHAPE__POSITION, newPosition, newPosition)); }
Example #21
Source File: GPortImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GPORT__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GPORT__PARENT, newParent, newParent)); }
Example #22
Source File: GModelRootImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setCanvasBounds(GBounds newCanvasBounds) { if (newCanvasBounds != canvasBounds) { NotificationChain msgs = null; if (canvasBounds != null) msgs = ((InternalEObject) canvasBounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GMODEL_ROOT__CANVAS_BOUNDS, null, msgs); if (newCanvasBounds != null) msgs = ((InternalEObject) newCanvasBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GMODEL_ROOT__CANVAS_BOUNDS, null, msgs); msgs = basicSetCanvasBounds(newCanvasBounds, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GMODEL_ROOT__CANVAS_BOUNDS, newCanvasBounds, newCanvasBounds)); }
Example #23
Source File: GButtonImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setParent(GModelElement newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != GraphPackage.GBUTTON__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject) newParent).eInverseAdd(this, GraphPackage.GMODEL_ELEMENT__CHILDREN, GModelElement.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GBUTTON__PARENT, newParent, newParent)); }
Example #24
Source File: GCompartmentImpl.java From graphical-lsp with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setSize(GDimension newSize) { if (newSize != size) { NotificationChain msgs = null; if (size != null) msgs = ((InternalEObject) size).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GCOMPARTMENT__SIZE, null, msgs); if (newSize != null) msgs = ((InternalEObject) newSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GCOMPARTMENT__SIZE, null, msgs); msgs = basicSetSize(newSize, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GCOMPARTMENT__SIZE, newSize, newSize)); }
Example #25
Source File: DocumentRootImpl.java From ADT_Frontend with MIT License | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case IAbapgitrepositoriesPackage.DOCUMENT_ROOT__MIXED: return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs); case IAbapgitrepositoriesPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); case IAbapgitrepositoriesPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs); case IAbapgitrepositoriesPackage.DOCUMENT_ROOT__REPOSITORIES: return basicSetRepositories(null, msgs); case IAbapgitrepositoriesPackage.DOCUMENT_ROOT__REPOSITORY: return basicSetRepository(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example #26
Source File: AbapGitStagingImpl.java From ADT_Frontend with MIT License | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setIgnoredObjects(IIgnoredObjects newIgnoredObjects) { if (newIgnoredObjects != ignoredObjects) { NotificationChain msgs = null; if (ignoredObjects != null) msgs = ((InternalEObject)ignoredObjects).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IAbapgitstagingPackage.ABAP_GIT_STAGING__IGNORED_OBJECTS, null, msgs); if (newIgnoredObjects != null) msgs = ((InternalEObject)newIgnoredObjects).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IAbapgitstagingPackage.ABAP_GIT_STAGING__IGNORED_OBJECTS, null, msgs); msgs = basicSetIgnoredObjects(newIgnoredObjects, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitstagingPackage.ABAP_GIT_STAGING__IGNORED_OBJECTS, newIgnoredObjects, newIgnoredObjects)); }
Example #27
Source File: GModelRootImpl.java From graphical-lsp with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case GraphPackage.GMODEL_ROOT__CHILDREN: return ((InternalEList<InternalEObject>) (InternalEList<?>) getChildren()).basicAdd(otherEnd, msgs); case GraphPackage.GMODEL_ROOT__PARENT: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetParent((GModelElement) otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
Example #28
Source File: GCompartmentImpl.java From graphical-lsp with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetSize(GDimension newSize, NotificationChain msgs) { GDimension oldSize = size; size = newSize; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GraphPackage.GCOMPARTMENT__SIZE, oldSize, newSize); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
Example #29
Source File: AbapGitStagingImpl.java From ADT_Frontend with MIT License | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setUnstagedObjects(IUnstagedObjects newUnstagedObjects) { if (newUnstagedObjects != unstagedObjects) { NotificationChain msgs = null; if (unstagedObjects != null) msgs = ((InternalEObject)unstagedObjects).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IAbapgitstagingPackage.ABAP_GIT_STAGING__UNSTAGED_OBJECTS, null, msgs); if (newUnstagedObjects != null) msgs = ((InternalEObject)newUnstagedObjects).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IAbapgitstagingPackage.ABAP_GIT_STAGING__UNSTAGED_OBJECTS, null, msgs); msgs = basicSetUnstagedObjects(newUnstagedObjects, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitstagingPackage.ABAP_GIT_STAGING__UNSTAGED_OBJECTS, newUnstagedObjects, newUnstagedObjects)); }
Example #30
Source File: DiagramElementImpl.java From graphical-lsp with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public NotificationChain basicSetSemanticElement(SemanticProxy newSemanticElement, NotificationChain msgs) { SemanticProxy oldSemanticElement = semanticElement; semanticElement = newSemanticElement; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WfnotationPackage.DIAGRAM_ELEMENT__SEMANTIC_ELEMENT, oldSemanticElement, newSemanticElement); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }