org.eclipse.emf.ecore.impl.ENotificationImpl Java Examples

The following examples show how to use org.eclipse.emf.ecore.impl.ENotificationImpl. 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 Project: nebula   Author: eclipse   File: Lane.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setTrack(ITrack newTrack) {
	if ((newTrack != eInternalContainer()) || ((eContainerFeatureID() != ITimelinePackage.LANE__TRACK) && (newTrack != null))) {
		if (EcoreUtil.isAncestor(this, newTrack))
			throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
		NotificationChain msgs = null;
		if (eInternalContainer() != null)
			msgs = eBasicRemoveFromContainer(msgs);
		if (newTrack != null)
			msgs = ((InternalEObject) newTrack).eInverseAdd(this, ITimelinePackage.TRACK__LANES, ITrack.class, msgs);
		msgs = basicSetTrack(newTrack, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, ITimelinePackage.LANE__TRACK, newTrack, newTrack));
}
 
Example #2
Source Project: graphical-lsp   Author: eclipsesource   File: GButtonImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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.GBUTTON__SIZE, null, msgs);
		if (newSize != null)
			msgs = ((InternalEObject) newSize).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GBUTTON__SIZE, null, msgs);
		msgs = basicSetSize(newSize, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GBUTTON__SIZE, newSize, newSize));
}
 
Example #3
Source Project: graphical-lsp   Author: eclipsesource   File: ShapeImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #4
Source Project: graphical-lsp   Author: eclipsesource   File: ShapeImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 Project: graphical-lsp   Author: eclipsesource   File: DiagramElementImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #6
Source Project: graphical-lsp   Author: eclipsesource   File: GCompartmentImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #7
Source Project: graphical-lsp   Author: eclipsesource   File: GLabelImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setEdgePlacement(GEdgePlacement newEdgePlacement) {
	if (newEdgePlacement != edgePlacement) {
		NotificationChain msgs = null;
		if (edgePlacement != null)
			msgs = ((InternalEObject) edgePlacement).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GLABEL__EDGE_PLACEMENT, null, msgs);
		if (newEdgePlacement != null)
			msgs = ((InternalEObject) newEdgePlacement).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GLABEL__EDGE_PLACEMENT, null, msgs);
		msgs = basicSetEdgePlacement(newEdgePlacement, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GLABEL__EDGE_PLACEMENT, newEdgePlacement,
				newEdgePlacement));
}
 
Example #8
Source Project: graphical-lsp   Author: eclipsesource   File: GLabelImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #9
Source Project: graphical-lsp   Author: eclipsesource   File: GCompartmentImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #10
Source Project: graphical-lsp   Author: eclipsesource   File: GLabelImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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.GLABEL__SIZE,
					null, msgs);
		if (newSize != null)
			msgs = ((InternalEObject) newSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.GLABEL__SIZE,
					null, msgs);
		msgs = basicSetSize(newSize, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GLABEL__SIZE, newSize, newSize));
}
 
Example #11
Source Project: graphical-lsp   Author: eclipsesource   File: GPreRenderedElementImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #12
Source Project: graphical-lsp   Author: eclipsesource   File: GNodeImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #13
Source Project: graphical-lsp   Author: eclipsesource   File: GNodeImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setEdgePlacement(GEdgePlacement newEdgePlacement) {
	if (newEdgePlacement != edgePlacement) {
		NotificationChain msgs = null;
		if (edgePlacement != null)
			msgs = ((InternalEObject) edgePlacement).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GNODE__EDGE_PLACEMENT, null, msgs);
		if (newEdgePlacement != null)
			msgs = ((InternalEObject) newEdgePlacement).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GNODE__EDGE_PLACEMENT, null, msgs);
		msgs = basicSetEdgePlacement(newEdgePlacement, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GNODE__EDGE_PLACEMENT, newEdgePlacement,
				newEdgePlacement));
}
 
Example #14
Source Project: nebula   Author: eclipse   File: Cursor.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #15
Source Project: graphical-lsp   Author: eclipsesource   File: GCompartmentImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #16
Source Project: graphical-lsp   Author: eclipsesource   File: GAlignableImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setAlignment(GPoint newAlignment) {
	if (newAlignment != alignment) {
		NotificationChain msgs = null;
		if (alignment != null)
			msgs = ((InternalEObject) alignment).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GALIGNABLE__ALIGNMENT, null, msgs);
		if (newAlignment != null)
			msgs = ((InternalEObject) newAlignment).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GALIGNABLE__ALIGNMENT, null, msgs);
		msgs = basicSetAlignment(newAlignment, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GALIGNABLE__ALIGNMENT, newAlignment,
				newAlignment));
}
 
Example #17
Source Project: nebula   Author: eclipse   File: Track.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #18
Source Project: graphical-lsp   Author: eclipsesource   File: GIssueMarkerImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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.GISSUE_MARKER__SIZE, null, msgs);
		if (newSize != null)
			msgs = ((InternalEObject) newSize).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GISSUE_MARKER__SIZE, null, msgs);
		msgs = basicSetSize(newSize, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GISSUE_MARKER__SIZE, newSize, newSize));
}
 
Example #19
Source Project: graphical-lsp   Author: eclipsesource   File: GModelRootImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 Project: graphical-lsp   Author: eclipsesource   File: GButtonImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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 #21
Source Project: graphical-lsp   Author: eclipsesource   File: GCompartmentImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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.GCOMPARTMENT__LAYOUT_OPTIONS, null, msgs);
		if (newLayoutOptions != null)
			msgs = ((InternalEObject) newLayoutOptions).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - GraphPackage.GCOMPARTMENT__LAYOUT_OPTIONS, null, msgs);
		msgs = basicSetLayoutOptions(newLayoutOptions, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GCOMPARTMENT__LAYOUT_OPTIONS,
				newLayoutOptions, newLayoutOptions));
}
 
Example #22
Source Project: ADT_Frontend   Author: abapGit   File: BranchImpl.java    License: MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setName(String newName) {
	String oldName = this.name;
	this.name = newName;
	if (eNotificationRequired()) {
		eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitexternalrepoPackage.BRANCH__NAME, oldName, this.name));
	}
}
 
Example #23
Source Project: graphical-lsp   Author: eclipsesource   File: GDimensionImpl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setHeight(double newHeight) {
	double oldHeight = height;
	height = newHeight;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GDIMENSION__HEIGHT, oldHeight, height));
}
 
Example #24
Source Project: ADT_Frontend   Author: abapGit   File: RepositoryImpl.java    License: MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setCreatedBy(String newCreatedBy) {
	String oldCreatedBy = this.createdBy;
	this.createdBy = newCreatedBy;
	if (eNotificationRequired()) {
		eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitrepositoriesPackage.REPOSITORY__CREATED_BY, oldCreatedBy, this.createdBy));
	}
}
 
Example #25
Source Project: graphical-lsp   Author: eclipsesource   File: TaskNodeImpl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setReference(String newReference) {
	String oldReference = reference;
	reference = newReference;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, WfgraphPackage.TASK_NODE__REFERENCE, oldReference,
				reference));
}
 
Example #26
Source Project: ADT_Frontend   Author: abapGit   File: RepositoryImpl.java    License: MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setCreatedAt(String newCreatedAt) {
	String oldCreatedAt = this.createdAt;
	this.createdAt = newCreatedAt;
	if (eNotificationRequired()) {
		eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitrepositoriesPackage.REPOSITORY__CREATED_AT, oldCreatedAt, this.createdAt));
	}
}
 
Example #27
Source Project: ADT_Frontend   Author: abapGit   File: RepositoryImpl.java    License: MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setDeserializedBy(String newDeserializedBy) {
	String oldDeserializedBy = this.deserializedBy;
	this.deserializedBy = newDeserializedBy;
	if (eNotificationRequired()) {
		eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitrepositoriesPackage.REPOSITORY__DESERIALIZED_BY, oldDeserializedBy, this.deserializedBy));
	}
}
 
Example #28
Source Project: graphical-lsp   Author: eclipsesource   File: PointImpl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setX(double newX) {
	double oldX = x;
	x = newX;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, WfnotationPackage.POINT__X, oldX, x));
}
 
Example #29
Source Project: graphical-lsp   Author: eclipsesource   File: PointImpl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setY(double newY) {
	double oldY = y;
	y = newY;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, WfnotationPackage.POINT__Y, oldY, y));
}
 
Example #30
Source Project: graphical-lsp   Author: eclipsesource   File: GEdgePlacementImpl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setOffset(Double newOffset) {
	Double oldOffset = offset;
	offset = newOffset;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GEDGE_PLACEMENT__OFFSET, oldOffset,
				offset));
}