下面列出了怎么用org.eclipse.emf.ecore.impl.ENotificationImpl的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
}
/**
* <!-- 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));
}
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}
/**
* <!-- 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));
}