Java Code Examples for org.eclipse.emf.ecore.util.InternalEList

The following examples show how to use org.eclipse.emf.ecore.util.InternalEList. These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: xtext-eclipse   Source File: JdtBasedTypeFactory.java    License: Eclipse Public License 2.0 6 votes vote down vote up
private JvmAnnotationValue createShortAnnotationValue(Object value) {
	JvmShortAnnotationValue annotationValue = TypesFactory.eINSTANCE.createJvmShortAnnotationValue();
	if (value != null) {
		@SuppressWarnings("unchecked")
		InternalEList<Object> values = (InternalEList<Object>)(InternalEList<?>)annotationValue.getValues();
		if (value instanceof Object[]) {
			for (Object element : (Object[])value) {
				if (element instanceof Short) {
					values.addUnique(element);
				} else if (element != null) {
					values.addUnique(((Number)element).shortValue());
				}
			}
		} else if (value instanceof Short) {
			values.addUnique(value);
		} else if (value instanceof Number) {
			values.addUnique(((Number)value).shortValue());
		}
	}
	return annotationValue;
}
 
Example 2
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case OlapModelPackage.OLAP_MODEL__PARENT_MODEL:
			if (eInternalContainer() != null)
				msgs = eBasicRemoveFromContainer(msgs);
			return basicSetParentModel((Model)otherEnd, msgs);
		case OlapModelPackage.OLAP_MODEL__CUBES:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getCubes()).basicAdd(otherEnd, msgs);
		case OlapModelPackage.OLAP_MODEL__VIRTUAL_CUBES:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getVirtualCubes()).basicAdd(otherEnd, msgs);
		case OlapModelPackage.OLAP_MODEL__DIMENSIONS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getDimensions()).basicAdd(otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
Example 3
Source Project: fixflow   Source File: InputSetImpl.java    License: Apache 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 Bpmn2Package.INPUT_SET__DATA_INPUT_REFS:
        return ((InternalEList<?>) getDataInputRefs()).basicRemove(otherEnd, msgs);
    case Bpmn2Package.INPUT_SET__OPTIONAL_INPUT_REFS:
        return ((InternalEList<?>) getOptionalInputRefs()).basicRemove(otherEnd, msgs);
    case Bpmn2Package.INPUT_SET__WHILE_EXECUTING_INPUT_REFS:
        return ((InternalEList<?>) getWhileExecutingInputRefs()).basicRemove(otherEnd, msgs);
    case Bpmn2Package.INPUT_SET__OUTPUT_SET_REFS:
        return ((InternalEList<?>) getOutputSetRefs()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 4
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 *
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
	case ModelPackage.MODEL__PHYSICAL_MODELS:
		return ((InternalEList<?>) getPhysicalModels()).basicRemove(otherEnd, msgs);
	case ModelPackage.MODEL__BUSINESS_MODELS:
		return ((InternalEList<?>) getBusinessModels()).basicRemove(otherEnd, msgs);
	case ModelPackage.MODEL__OLAP_MODELS:
		return ((InternalEList<?>) getOlapModels()).basicRemove(otherEnd, msgs);
	case ModelPackage.MODEL__PROPERTY_TYPES:
		return ((InternalEList<?>) getPropertyTypes()).basicRemove(otherEnd, msgs);
	case ModelPackage.MODEL__PROPERTY_CATEGORIES:
		return ((InternalEList<?>) getPropertyCategories()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 5
Source Project: fixflow   Source File: DataOutputImpl.java    License: Apache License 2.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 Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_WITH_OPTIONAL:
        return ((InternalEList<InternalEObject>) (InternalEList<?>) getOutputSetWithOptional())
                .basicAdd(otherEnd, msgs);
    case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_WITH_WHILE_EXECUTING:
        return ((InternalEList<InternalEObject>) (InternalEList<?>) getOutputSetWithWhileExecuting())
                .basicAdd(otherEnd, msgs);
    case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_REFS:
        return ((InternalEList<InternalEObject>) (InternalEList<?>) getOutputSetRefs())
                .basicAdd(otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
Example 6
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case BacktrackingContentAssistTestPackage.OPERATION_CONTEXT_DECL__OPERATION:
      return basicSetOperation(null, msgs);
    case BacktrackingContentAssistTestPackage.OPERATION_CONTEXT_DECL__PARAMETERS:
      return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs);
    case BacktrackingContentAssistTestPackage.OPERATION_CONTEXT_DECL__TYPE:
      return basicSetType(null, msgs);
    case BacktrackingContentAssistTestPackage.OPERATION_CONTEXT_DECL__PRES:
      return ((InternalEList<?>)getPres()).basicRemove(otherEnd, msgs);
    case BacktrackingContentAssistTestPackage.OPERATION_CONTEXT_DECL__POSTS:
      return ((InternalEList<?>)getPosts()).basicRemove(otherEnd, msgs);
    case BacktrackingContentAssistTestPackage.OPERATION_CONTEXT_DECL__BODIES:
      return ((InternalEList<?>)getBodies()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 7
Source Project: statecharts   Source File: StateImpl.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 SGraphPackage.STATE__SCOPES:
			return ((InternalEList<?>)getScopes()).basicRemove(otherEnd, msgs);
		case SGraphPackage.STATE__PARENT_REGION:
			return basicSetParentRegion(null, msgs);
		case SGraphPackage.STATE__INCOMING_TRANSITIONS:
			return ((InternalEList<?>)getIncomingTransitions()).basicRemove(otherEnd, msgs);
		case SGraphPackage.STATE__OUTGOING_TRANSITIONS:
			return ((InternalEList<?>)getOutgoingTransitions()).basicRemove(otherEnd, msgs);
		case SGraphPackage.STATE__REGIONS:
			return ((InternalEList<?>)getRegions()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 8
Source Project: ifml-editor   Source File: ConditionalExpressionImpl.java    License: MIT License 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 CorePackage.CONDITIONAL_EXPRESSION__PARAMETERS:
			return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs);
		case CorePackage.CONDITIONAL_EXPRESSION__OUT_INTERACTION_FLOWS:
			return ((InternalEList<?>)getOutInteractionFlows()).basicRemove(otherEnd, msgs);
		case CorePackage.CONDITIONAL_EXPRESSION__IN_INTERACTION_FLOWS:
			return ((InternalEList<?>)getInInteractionFlows()).basicRemove(otherEnd, msgs);
		case CorePackage.CONDITIONAL_EXPRESSION__VIEW_ELEMENT_EVENTS:
			return ((InternalEList<?>)getViewElementEvents()).basicRemove(otherEnd, msgs);
		case CorePackage.CONDITIONAL_EXPRESSION__PARENT_VIEW_COMPONENT_PART:
			return basicSetParentViewComponentPart(null, msgs);
		case CorePackage.CONDITIONAL_EXPRESSION__SUB_VIEW_COMPONENT_PARTS:
			return ((InternalEList<?>)getSubViewComponentParts()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 9
/**
 * Return an Iterable containing all the contents of the given feature of the given object. If the
 * feature is not many-valued, the resulting iterable will have one element. If the feature is an EReference,
 * the iterable may contain proxies. The iterable may contain null values.
 *
 * @param <T>
 *          The Generic type of the objects in the iterable
 * @param obj
 *          The object
 * @param feature
 *          The feature
 * @return An iterable over all the contents of the feature of the object.
 */
@SuppressWarnings("unchecked")
private <T> Iterable<T> featureIterable(final EObject obj, final EStructuralFeature feature) {
  if (feature == null) {
    return Collections.emptyList();
  }
  if (feature.isMany()) {
    if (feature instanceof EAttribute || ((EReference) feature).isContainment()) {
      return (Iterable<T>) obj.eGet(feature);
    }
    return new Iterable<T>() {
      @Override
      public Iterator<T> iterator() {
        return ((InternalEList<T>) obj.eGet(feature)).basicIterator(); // Don't resolve
      }
    };
  }
  return Collections.singletonList((T) obj.eGet(feature, false)); // Don't resolve
}
 
Example 10
Source Project: neoscada   Source File: ScriptItemImpl.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 OsgiPackage.SCRIPT_ITEM__INPUTS:
            return ( (InternalEList<?>)getInputs () ).basicRemove ( otherEnd, msgs );
        case OsgiPackage.SCRIPT_ITEM__INIT_SCRIPT:
            return basicSetInitScript ( null, msgs );
        case OsgiPackage.SCRIPT_ITEM__UPDATE_SCRIPT:
            return basicSetUpdateScript ( null, msgs );
        case OsgiPackage.SCRIPT_ITEM__TIMER:
            return basicSetTimer ( null, msgs );
        case OsgiPackage.SCRIPT_ITEM__COMMANDS:
            return ( (InternalEList<?>)getCommands () ).basicRemove ( otherEnd, msgs );
        case OsgiPackage.SCRIPT_ITEM__WRITE_COMMAND_SCRIPT:
            return basicSetWriteCommandScript ( null, msgs );
        case OsgiPackage.SCRIPT_ITEM__INIT_PROPERTIES:
            return ( (InternalEList<?>)getInitProperties () ).basicRemove ( otherEnd, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
 
Example 11
Source Project: dsl-devkit   Source File: ExportImpl.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 ExportPackage.EXPORT__LOOKUP_PREDICATE:
			return basicSetLookupPredicate(null, msgs);
		case ExportPackage.EXPORT__NAMING:
			return basicSetNaming(null, msgs);
		case ExportPackage.EXPORT__ATTRIBUTES:
			return ((InternalEList<?>)getAttributes()).basicRemove(otherEnd, msgs);
		case ExportPackage.EXPORT__USER_DATA:
			return ((InternalEList<?>)getUserData()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 12
Source Project: neoscada   Source File: DocumentRootImpl.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 ConfigurationPackage.DOCUMENT_ROOT__MIXED:
            return ( (InternalEList<?>)getMixed () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            return ( (InternalEList<?>)getXMLNSPrefixMap () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            return ( (InternalEList<?>)getXSISchemaLocation () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__ROOT:
            return basicSetRoot ( null, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
 
Example 13
Source Project: xtext-eclipse   Source File: JdtBasedTypeFactory.java    License: Eclipse Public License 2.0 6 votes vote down vote up
private JvmAnnotationValue createAnnotationAnnotationValue(Object value) {
	JvmAnnotationAnnotationValue annotationValue = TypesFactory.eINSTANCE.createJvmAnnotationAnnotationValue();
	if (value != null) {
		InternalEList<JvmAnnotationReference> values = (InternalEList<JvmAnnotationReference>)annotationValue.getValues();
		if (value instanceof Object[]) {
			for (Object element : (Object[])value) {
				if (element instanceof IAnnotationBinding) {
					values.addUnique(createAnnotationReference((IAnnotationBinding)element));
				}
			}
		} else if (value instanceof IAnnotationBinding) {
			values.addUnique(createAnnotationReference((IAnnotationBinding)value));
		}
	}
	return annotationValue;
}
 
Example 14
Source Project: xtext-eclipse   Source File: JdtBasedTypeFactory.java    License: Eclipse Public License 2.0 6 votes vote down vote up
private JvmAnnotationValue createDoubleAnnotationValue(Object value) {
	JvmDoubleAnnotationValue annotationValue = TypesFactory.eINSTANCE.createJvmDoubleAnnotationValue();
	if (value != null) {
		@SuppressWarnings("unchecked")
		InternalEList<Object> values = (InternalEList<Object>)(InternalEList<?>)annotationValue.getValues();
		if (value instanceof Object[]) {
			for (Object element : (Object[])value) {
				if (element instanceof Double) {
					values.addUnique(element);
				} else if (element != null) {
					values.addUnique(((Number)element).doubleValue());
				}
			}
		} else if (value instanceof Double) {
			values.addUnique(value);
		} else if (value instanceof Number) {
			values.addUnique(((Number)value).doubleValue());
		}
	}
	return annotationValue;
}
 
Example 15
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case ModelPackage.TCATCH_EVENT__DATA_OUTPUT:
			return ((InternalEList<?>)getDataOutput()).basicRemove(otherEnd, msgs);
		case ModelPackage.TCATCH_EVENT__DATA_OUTPUT_ASSOCIATION:
			return ((InternalEList<?>)getDataOutputAssociation()).basicRemove(otherEnd, msgs);
		case ModelPackage.TCATCH_EVENT__OUTPUT_SET:
			return basicSetOutputSet(null, msgs);
		case ModelPackage.TCATCH_EVENT__EVENT_DEFINITION_GROUP:
			return ((InternalEList<?>)getEventDefinitionGroup()).basicRemove(otherEnd, msgs);
		case ModelPackage.TCATCH_EVENT__EVENT_DEFINITION:
			return ((InternalEList<?>)getEventDefinition()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 16
Source Project: xtext-eclipse   Source File: JdtBasedTypeFactory.java    License: Eclipse Public License 2.0 6 votes vote down vote up
/**
 * @since 2.4
 */
protected JvmAnnotationReference createAnnotationReference(/* @NonNull */ IAnnotationBinding annotation) {
	JvmAnnotationReference annotationReference = TypesFactory.eINSTANCE.createJvmAnnotationReference();
	ITypeBinding annotationType = annotation.getAnnotationType();
	annotationReference.setAnnotation(createAnnotationProxy(annotationType));
	InternalEList<JvmAnnotationValue> values = (InternalEList<JvmAnnotationValue>)annotationReference.getExplicitValues();
	IMemberValuePairBinding[] allMemberValuePairs = annotation.getDeclaredMemberValuePairs();
	for (IMemberValuePairBinding memberValuePair : allMemberValuePairs) {
		IMethodBinding methodBinding = memberValuePair.getMethodBinding();
		if (methodBinding != null) {
			try {
				values.addUnique(createAnnotationValue(annotationType, memberValuePair.getValue(), methodBinding));
			} catch(NullPointerException npe) {
				// memberValuePair#getValue may throw an NPE if the methodBinding has no return type
				if (methodBinding.getReturnType() != null) {
					throw npe;
				} else {
					if (log.isDebugEnabled()) {
						log.debug(npe.getMessage(), npe);
					}
				}
			}
		}
	}
	return annotationReference;
}
 
Example 17
Source Project: xtext-core   Source File: TestLinewrapImpl.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 FormattertestlanguagePackage.TEST_LINEWRAP__ITEMS:
      return ((InternalEList<?>)getItems()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 18
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case YangPackage.DEFAULT_STATEMENT__DEFAULTUNKNOWNSTATEMENTS:
      return ((InternalEList<?>)getDefaultunknownstatements()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 19
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case ModelPackage.MBRICKLET_JOYSTICK__BRICKD:
            return basicSetBrickd(null, msgs);
        case ModelPackage.MBRICKLET_JOYSTICK__MSUBDEVICES:
            return ((InternalEList<?>) getMsubdevices()).basicRemove(otherEnd, msgs);
        case ModelPackage.MBRICKLET_JOYSTICK__TF_CONFIG:
            return basicSetTfConfig(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 20
Source Project: bonita-studio   Source File: ValidableImpl.java    License: GNU General Public License v2.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 FormPackage.VALIDABLE__VALIDATORS:
               return ((InternalEList<?>)getValidators()).basicRemove(otherEnd, msgs);
       }
       return super.eInverseRemove(otherEnd, featureID, msgs);
   }
 
Example 21
Source Project: bonita-studio   Source File: PackageImpl.java    License: GNU General Public License v2.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 BusinessDataModelPackage.PACKAGE__BUSINESS_OBJECTS:
            return ((InternalEList<?>)getBusinessObjects()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 22
Source Project: statecharts   Source File: CompositeElementImpl.java    License: Eclipse Public License 1.0 5 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 SGraphPackage.COMPOSITE_ELEMENT__REGIONS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getRegions()).basicAdd(otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
Example 23
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case YangPackage.POSITION_STATEMENT__POSITIONUNKNOWNSTATEMENTS:
      return ((InternalEList<?>)getPositionunknownstatements()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 24
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case YangPackage.ORDEREDBY_STATEMENT__ORDEREDBYUNKNOWNSTATEMENTS:
      return ((InternalEList<?>)getOrderedbyunknownstatements()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 25
Source Project: xtext-eclipse   Source File: XmlDocumentImpl.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 SimplexmlPackage.XML_DOCUMENT__CONTENTS:
      return ((InternalEList<?>)getContents()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 26
Source Project: ifml-editor   Source File: DomainModelImpl.java    License: MIT License 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 CorePackage.DOMAIN_MODEL__DOMAIN_ELEMENTS:
			return ((InternalEList<?>)getDomainElements()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 27
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case ModelPackage.MODEL_PROPERTY_CATEGORY__PROPERTY_TYPES:
			return ((InternalEList<?>)getPropertyTypes()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 28
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove ( InternalEObject otherEnd, int featureID, NotificationChain msgs )
{
    switch ( featureID )
    {
        case WorldPackage.ABSTRACT_GENERIC_DATABASE_SETTINGS__ADDITIONAL_PROPERTIES:
            return ( (InternalEList<?>)getAdditionalProperties () ).basicRemove ( otherEnd, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
 
Example 29
/**
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   @Override
   public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case ConnectorDefinitionPackage.CONNECTOR_DEFINITION__CATEGORY:
			return ((InternalEList<?>)getCategory()).basicRemove(otherEnd, msgs);
		case ConnectorDefinitionPackage.CONNECTOR_DEFINITION__INPUT:
			return ((InternalEList<?>)getInput()).basicRemove(otherEnd, msgs);
		case ConnectorDefinitionPackage.CONNECTOR_DEFINITION__OUTPUT:
			return ((InternalEList<?>)getOutput()).basicRemove(otherEnd, msgs);
		case ConnectorDefinitionPackage.CONNECTOR_DEFINITION__PAGE:
			return ((InternalEList<?>)getPage()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 30
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
	switch (featureID)
	{
		case XbasePackage.XABSTRACT_FEATURE_CALL__TYPE_ARGUMENTS:
			return ((InternalEList<?>)getTypeArguments()).basicRemove(otherEnd, msgs);
		case XbasePackage.XABSTRACT_FEATURE_CALL__IMPLICIT_RECEIVER:
			return basicSetImplicitReceiver(null, msgs);
		case XbasePackage.XABSTRACT_FEATURE_CALL__IMPLICIT_FIRST_ARGUMENT:
			return basicSetImplicitFirstArgument(null, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}