org.eclipse.emf.ecore.InternalEObject Java Examples

The following examples show how to use org.eclipse.emf.ecore.InternalEObject. 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: xtext-eclipse   Author: eclipse   File: AliasWhereEntryImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public FromEntry getAlias()
{
  if (alias != null && alias.eIsProxy())
  {
    InternalEObject oldAlias = (InternalEObject)alias;
    alias = (FromEntry)eResolveProxy(oldAlias);
    if (alias != oldAlias)
    {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bug287941TestLanguagePackage.ALIAS_WHERE_ENTRY__ALIAS, oldAlias, alias));
    }
  }
  return alias;
}
 
Example #2
Source Project: xtext-core   Author: eclipse   File: SpielplatzImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case ReferenceGrammarPackage.SPIELPLATZ__KINDER:
      return ((InternalEList<?>)getKinder()).basicRemove(otherEnd, msgs);
    case ReferenceGrammarPackage.SPIELPLATZ__ERZIEHER:
      return ((InternalEList<?>)getErzieher()).basicRemove(otherEnd, msgs);
    case ReferenceGrammarPackage.SPIELPLATZ__SPIELZEUGE:
      return ((InternalEList<?>)getSpielzeuge()).basicRemove(otherEnd, msgs);
    case ReferenceGrammarPackage.SPIELPLATZ__FAMILIE:
      return ((InternalEList<?>)getFamilie()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #3
Source Project: xtext-xtend   Author: eclipse   File: IfConditionStartImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EndIf getEndIf()
{
	if (endIf != null && endIf.eIsProxy())
	{
		InternalEObject oldEndIf = (InternalEObject)endIf;
		endIf = (EndIf)eResolveProxy(oldEndIf);
		if (endIf != oldEndIf)
		{
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProcessedRichStringPackage.IF_CONDITION_START__END_IF, oldEndIf, endIf));
		}
	}
	return endIf;
}
 
Example #4
Source Project: xtext-core   Author: eclipse   File: ModelImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setQuantityExclusion(QuantityExclusionTest newQuantityExclusion)
{
  if (newQuantityExclusion != quantityExclusion)
  {
    NotificationChain msgs = null;
    if (quantityExclusion != null)
      msgs = ((InternalEObject)quantityExclusion).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ContextFinderTestPackage.MODEL__QUANTITY_EXCLUSION, null, msgs);
    if (newQuantityExclusion != null)
      msgs = ((InternalEObject)newQuantityExclusion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ContextFinderTestPackage.MODEL__QUANTITY_EXCLUSION, null, msgs);
    msgs = basicSetQuantityExclusion(newQuantityExclusion, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ContextFinderTestPackage.MODEL__QUANTITY_EXCLUSION, newQuantityExclusion, newQuantityExclusion));
}
 
Example #5
Source Project: xtext-extras   Author: eclipse   File: AndExpressionImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRight(Expression newRight)
{
  if (newRight != right)
  {
    NotificationChain msgs = null;
    if (right != null)
      msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SimpleAntlrPackage.AND_EXPRESSION__RIGHT, null, msgs);
    if (newRight != null)
      msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SimpleAntlrPackage.AND_EXPRESSION__RIGHT, null, msgs);
    msgs = basicSetRight(newRight, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, SimpleAntlrPackage.AND_EXPRESSION__RIGHT, newRight, newRight));
}
 
Example #6
Source Project: Knowage-Server   Author: KnowageLabs   File: CubeImpl.java    License: GNU Affero General Public License v3.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case OlapModelPackage.CUBE__MODEL:
			if (eInternalContainer() != null)
				msgs = eBasicRemoveFromContainer(msgs);
			return basicSetModel((OlapModel)otherEnd, msgs);
		case OlapModelPackage.CUBE__MEASURES:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getMeasures()).basicAdd(otherEnd, msgs);
		case OlapModelPackage.CUBE__CALCULATED_MEMBERS:
			if (calculatedMembers != null)
				msgs = ((InternalEObject)calculatedMembers).eInverseRemove(this, OlapModelPackage.CALCULATED_MEMBER__CUBE, CalculatedMember.class, msgs);
			return basicSetCalculatedMembers((CalculatedMember)otherEnd, msgs);
		case OlapModelPackage.CUBE__NAMED_SETS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getNamedSets()).basicAdd(otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
Example #7
Source Project: Knowage-Server   Author: KnowageLabs   File: DimensionImpl.java    License: GNU Affero General Public License v3.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setModel(OlapModel newModel) {
	if (newModel != eInternalContainer() || (eContainerFeatureID() != OlapModelPackage.DIMENSION__MODEL && newModel != null)) {
		if (EcoreUtil.isAncestor(this, newModel))
			throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
		NotificationChain msgs = null;
		if (eInternalContainer() != null)
			msgs = eBasicRemoveFromContainer(msgs);
		if (newModel != null)
			msgs = ((InternalEObject)newModel).eInverseAdd(this, OlapModelPackage.OLAP_MODEL__DIMENSIONS, OlapModel.class, msgs);
		msgs = basicSetModel(newModel, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, OlapModelPackage.DIMENSION__MODEL, newModel, newModel));
}
 
Example #8
Source Project: neoscada   Author: eclipse   File: EndpointImpl.java    License: Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ServiceBinding getBoundService ()
{
    if ( boundService != null && boundService.eIsProxy () )
    {
        InternalEObject oldBoundService = (InternalEObject)boundService;
        boundService = (ServiceBinding)eResolveProxy ( oldBoundService );
        if ( boundService != oldBoundService )
        {
            InternalEObject newBoundService = (InternalEObject)boundService;
            NotificationChain msgs = oldBoundService.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - WorldPackage.ENDPOINT__BOUND_SERVICE, null, null );
            if ( newBoundService.eInternalContainer () == null )
            {
                msgs = newBoundService.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - WorldPackage.ENDPOINT__BOUND_SERVICE, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, WorldPackage.ENDPOINT__BOUND_SERVICE, oldBoundService, boundService ) );
        }
    }
    return boundService;
}
 
Example #9
Source Project: graphical-lsp   Author: eclipsesource   File: GGraphImpl.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.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 #10
Source Project: xtext-extras   Author: eclipse   File: JvmGenericArrayTypeReferenceImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setComponentType(JvmTypeReference newComponentType)
{
	if (newComponentType != componentType)
	{
		NotificationChain msgs = null;
		if (componentType != null)
			msgs = ((InternalEObject)componentType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE, null, msgs);
		if (newComponentType != null)
			msgs = ((InternalEObject)newComponentType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TypesPackage.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE, null, msgs);
		msgs = basicSetComponentType(newComponentType, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE, newComponentType, newComponentType));
}
 
Example #11
Source Project: xtext-core   Author: eclipse   File: ChildImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Definition getLink()
{
  if (link != null && link.eIsProxy())
  {
    InternalEObject oldLink = (InternalEObject)link;
    link = (Definition)eResolveProxy(oldLink);
    if (link != oldLink)
    {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bug311337Package.CHILD__LINK, oldLink, link));
    }
  }
  return link;
}
 
Example #12
Source Project: gama   Author: gama-platform   File: ArrayImpl.java    License: GNU General Public License v3.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setExprs(ExpressionList newExprs)
{
  if (newExprs != exprs)
  {
    NotificationChain msgs = null;
    if (exprs != null)
      msgs = ((InternalEObject)exprs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamlPackage.ARRAY__EXPRS, null, msgs);
    if (newExprs != null)
      msgs = ((InternalEObject)newExprs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamlPackage.ARRAY__EXPRS, null, msgs);
    msgs = basicSetExprs(newExprs, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, GamlPackage.ARRAY__EXPRS, newExprs, newExprs));
}
 
Example #13
Source Project: xtext-eclipse   Author: eclipse   File: ModelImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setFirst(SimpleModel newFirst)
{
  if (newFirst != first)
  {
    NotificationChain msgs = null;
    if (first != null)
      msgs = ((InternalEObject)first).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UnorderedGroupsTestPackage.MODEL__FIRST, null, msgs);
    if (newFirst != null)
      msgs = ((InternalEObject)newFirst).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UnorderedGroupsTestPackage.MODEL__FIRST, null, msgs);
    msgs = basicSetFirst(newFirst, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, UnorderedGroupsTestPackage.MODEL__FIRST, newFirst, newFirst));
}
 
Example #14
Source Project: dsl-devkit   Author: dsldevkit   File: ScopeModelImpl.java    License: Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case ScopePackage.SCOPE_MODEL__IMPORTS:
      return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs);
    case ScopePackage.SCOPE_MODEL__EXTENSIONS:
      return ((InternalEList<?>)getExtensions()).basicRemove(otherEnd, msgs);
    case ScopePackage.SCOPE_MODEL__INJECTIONS:
      return ((InternalEList<?>)getInjections()).basicRemove(otherEnd, msgs);
    case ScopePackage.SCOPE_MODEL__NAMING:
      return basicSetNaming(null, msgs);
    case ScopePackage.SCOPE_MODEL__SCOPES:
      return ((InternalEList<?>)getScopes()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #15
Source Project: neoscada   Author: eclipse   File: NotTransformerImpl.java    License: Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setValue ( ValueSource newValue )
{
    if ( newValue != value )
    {
        NotificationChain msgs = null;
        if ( value != null )
            msgs = ( (InternalEObject)value ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - DetailViewPackage.NOT_TRANSFORMER__VALUE, null, msgs );
        if ( newValue != null )
            msgs = ( (InternalEObject)newValue ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - DetailViewPackage.NOT_TRANSFORMER__VALUE, null, msgs );
        msgs = basicSetValue ( newValue, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, DetailViewPackage.NOT_TRANSFORMER__VALUE, newValue, newValue ) );
}
 
Example #16
Source Project: n4js   Author: eclipse   File: LineTagImpl.java    License: Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setDoclet(Doclet newDoclet) {
	if (newDoclet != eInternalContainer() || (eContainerFeatureID() != DomPackage.LINE_TAG__DOCLET && newDoclet != null)) {
		if (EcoreUtil.isAncestor(this, newDoclet))
			throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
		NotificationChain msgs = null;
		if (eInternalContainer() != null)
			msgs = eBasicRemoveFromContainer(msgs);
		if (newDoclet != null)
			msgs = ((InternalEObject)newDoclet).eInverseAdd(this, DomPackage.DOCLET__LINE_TAGS, Doclet.class, msgs);
		msgs = basicSetDoclet(newDoclet, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.LINE_TAG__DOCLET, newDoclet, newDoclet));
}
 
Example #17
Source Project: openhab1-addons   Author: openhab   File: MBrickletJoystickImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setBrickd(MBrickd newBrickd) {
    if (newBrickd != eInternalContainer()
            || (eContainerFeatureID() != ModelPackage.MBRICKLET_JOYSTICK__BRICKD && newBrickd != null)) {
        if (EcoreUtil.isAncestor(this, newBrickd))
            throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
        NotificationChain msgs = null;
        if (eInternalContainer() != null)
            msgs = eBasicRemoveFromContainer(msgs);
        if (newBrickd != null)
            msgs = ((InternalEObject) newBrickd).eInverseAdd(this, ModelPackage.MBRICKD__MDEVICES, MBrickd.class,
                    msgs);
        msgs = basicSetBrickd(newBrickd, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_JOYSTICK__BRICKD, newBrickd,
                newBrickd));
}
 
Example #18
Source Project: openhab1-addons   Author: openhab   File: RemoteSwitchAImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setTfConfig(RemoteSwitchAConfiguration newTfConfig) {
    if (newTfConfig != tfConfig) {
        NotificationChain msgs = null;
        if (tfConfig != null)
            msgs = ((InternalEObject) tfConfig).eInverseRemove(this,
                    EOPPOSITE_FEATURE_BASE - ModelPackage.REMOTE_SWITCH_A__TF_CONFIG, null, msgs);
        if (newTfConfig != null)
            msgs = ((InternalEObject) newTfConfig).eInverseAdd(this,
                    EOPPOSITE_FEATURE_BASE - ModelPackage.REMOTE_SWITCH_A__TF_CONFIG, null, msgs);
        msgs = basicSetTfConfig(newTfConfig, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.REMOTE_SWITCH_A__TF_CONFIG, newTfConfig,
                newTfConfig));
}
 
Example #19
Source Project: openhab1-addons   Author: openhab   File: MBrickletUVLightImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated
 */
@Override
public void setBrickd(MBrickd newBrickd) {
    if (newBrickd != eInternalContainer()
            || (eContainerFeatureID() != ModelPackage.MBRICKLET_UV_LIGHT__BRICKD && newBrickd != null)) {
        if (EcoreUtil.isAncestor(this, newBrickd)) {
            throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
        }
        NotificationChain msgs = null;
        if (eInternalContainer() != null) {
            msgs = eBasicRemoveFromContainer(msgs);
        }
        if (newBrickd != null) {
            msgs = ((InternalEObject) newBrickd).eInverseAdd(this, ModelPackage.MBRICKD__MDEVICES, MBrickd.class,
                    msgs);
        }
        msgs = basicSetBrickd(newBrickd, msgs);
        if (msgs != null) {
            msgs.dispatch();
        }
    } else if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_UV_LIGHT__BRICKD, newBrickd,
                newBrickd));
    }
}
 
Example #20
Source Project: xtext-core   Author: eclipse   File: ResourceStorageLoadable.java    License: Eclipse Public License 2.0 6 votes vote down vote up
protected void readContents(StorageAwareResource resource, InputStream inputStream) throws IOException {
	new BinaryResourceImpl.EObjectInputStream(inputStream, Collections.emptyMap()) {
		@Override
		public int readCompressedInt() throws IOException {
			//HACK! null resource set, to avoid usage of resourceSet's package registry
			resourceSet = null;
			return super.readCompressedInt();
		}

		@Override
		public InternalEObject loadEObject() throws IOException {
			InternalEObject result = super.loadEObject();
			handleLoadEObject(result, this);
			return result;
		}
	}.loadResource(resource);
}
 
Example #21
Source Project: xtext-eclipse   Author: eclipse   File: ContentImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setTag(Tag newTag)
{
  if (newTag != tag)
  {
    NotificationChain msgs = null;
    if (tag != null)
      msgs = ((InternalEObject)tag).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SimplexmlPackage.CONTENT__TAG, null, msgs);
    if (newTag != null)
      msgs = ((InternalEObject)newTag).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SimplexmlPackage.CONTENT__TAG, null, msgs);
    msgs = basicSetTag(newTag, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, SimplexmlPackage.CONTENT__TAG, newTag, newTag));
}
 
Example #22
Source Project: birt   Author: eclipse   File: ChartPreferencesImpl.java    License: Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove( InternalEObject otherEnd,
		int featureID, NotificationChain msgs )
{
	switch ( featureID )
	{
		case ComponentPackage.CHART_PREFERENCES__LABELS :
			return ( (InternalEList<?>) getLabels( ) ).basicRemove( otherEnd,
					msgs );
		case ComponentPackage.CHART_PREFERENCES__BLOCKS :
			return ( (InternalEList<?>) getBlocks( ) ).basicRemove( otherEnd,
					msgs );
	}
	return super.eInverseRemove( otherEnd, featureID, msgs );
}
 
Example #23
Source Project: statecharts   Author: Yakindu   File: TransitionImpl.java    License: Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setTarget(Vertex newTarget) {
	if (newTarget != target) {
		NotificationChain msgs = null;
		if (target != null)
			msgs = ((InternalEObject)target).eInverseRemove(this, SGraphPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs);
		if (newTarget != null)
			msgs = ((InternalEObject)newTarget).eInverseAdd(this, SGraphPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs);
		msgs = basicSetTarget(newTarget, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, SGraphPackage.TRANSITION__TARGET, newTarget, newTarget));
}
 
Example #24
Source Project: xtext-extras   Author: eclipse   File: AModelImpl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case AsubpackagePackage.AMODEL__ELEMENTS:
			return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #25
Source Project: openhab1-addons   Author: openhab   File: MBrickletAnalogOutV2Impl.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case ModelPackage.MBRICKLET_ANALOG_OUT_V2__BRICKD:
            return basicSetBrickd(null, msgs);
        case ModelPackage.MBRICKLET_ANALOG_OUT_V2__TF_CONFIG:
            return basicSetTfConfig(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #26
Source Project: n4js   Author: eclipse   File: VirtualBaseTypeImpl.java    License: Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setDeclaredElementType(TypeRef newDeclaredElementType) {
	if (newDeclaredElementType != declaredElementType) {
		NotificationChain msgs = null;
		if (declaredElementType != null)
			msgs = ((InternalEObject)declaredElementType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.VIRTUAL_BASE_TYPE__DECLARED_ELEMENT_TYPE, null, msgs);
		if (newDeclaredElementType != null)
			msgs = ((InternalEObject)newDeclaredElementType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TypesPackage.VIRTUAL_BASE_TYPE__DECLARED_ELEMENT_TYPE, null, msgs);
		msgs = basicSetDeclaredElementType(newDeclaredElementType, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.VIRTUAL_BASE_TYPE__DECLARED_ELEMENT_TYPE, newDeclaredElementType, newDeclaredElementType));
}
 
Example #27
Source Project: dsl-devkit   Author: dsldevkit   File: SimpleScopeExpressionImpl.java    License: Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case ScopePackage.SIMPLE_SCOPE_EXPRESSION__EXPR:
      return basicSetExpr(null, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #28
Source Project: neoscada   Author: eclipse   File: WorldImpl.java    License: Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove ( InternalEObject otherEnd, int featureID, NotificationChain msgs )
{
    switch ( featureID )
    {
        case WorldPackage.WORLD__NODES:
            return ( (InternalEList<?>)getNodes () ).basicRemove ( otherEnd, msgs );
        case WorldPackage.WORLD__OPTIONS:
            return basicSetOptions ( null, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
 
Example #29
Source Project: ifml-editor   Author: ifml   File: ModuleDefinitionImpl.java    License: MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ActivityConcept getActivityConcept() {
	if (activityConcept != null && activityConcept.eIsProxy()) {
		InternalEObject oldActivityConcept = (InternalEObject)activityConcept;
		activityConcept = (ActivityConcept)eResolveProxy(oldActivityConcept);
		if (activityConcept != oldActivityConcept) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, CorePackage.MODULE_DEFINITION__ACTIVITY_CONCEPT, oldActivityConcept, activityConcept));
		}
	}
	return activityConcept;
}
 
Example #30
Source Project: fixflow   Author: fixteam   File: CallActivityImpl.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CallableElement getCalledElementRef() {
    if (calledElementRef != null && calledElementRef.eIsProxy()) {
        InternalEObject oldCalledElementRef = (InternalEObject) calledElementRef;
        calledElementRef = (CallableElement) eResolveProxy(oldCalledElementRef);
        if (calledElementRef != oldCalledElementRef) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE,
                        Bpmn2Package.CALL_ACTIVITY__CALLED_ELEMENT_REF, oldCalledElementRef,
                        calledElementRef));
        }
    }
    return calledElementRef;
}