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

The following examples show how to use org.eclipse.emf.ecore.util.InternalEList. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OlapModelImpl.java    From Knowage-Server with 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.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 #2
Source File: ModelImpl.java    From Knowage-Server with GNU Affero General Public License v3.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 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 #3
Source File: OperationContextDeclImpl.java    From xtext-eclipse with 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 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 #4
Source File: JdtBasedTypeFactory.java    From xtext-eclipse with 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 #5
Source File: TCatchEventImpl.java    From bonita-studio with GNU General Public License v2.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 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 #6
Source File: JdtBasedTypeFactory.java    From xtext-eclipse with 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 #7
Source File: JdtBasedTypeFactory.java    From xtext-eclipse with 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 #8
Source File: DataOutputImpl.java    From fixflow with 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 #9
Source File: InputSetImpl.java    From fixflow with 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 #10
Source File: StateImpl.java    From statecharts with 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 #11
Source File: ExportImpl.java    From dsl-devkit with 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 File: DocumentRootImpl.java    From neoscada with 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 File: JdtBasedTypeFactory.java    From xtext-eclipse with 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 #14
Source File: ScriptItemImpl.java    From neoscada with 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 #15
Source File: ConditionalExpressionImpl.java    From ifml-editor with 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 #16
Source File: AbstractFingerprintComputer.java    From dsl-devkit with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 #17
Source File: SimulationCalendarImpl.java    From bonita-studio with 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 SimulationPackage.SIMULATION_CALENDAR__DAYS_OF_WEEK:
               return ((InternalEList<?>)getDaysOfWeek()).basicRemove(otherEnd, msgs);
       }
       return super.eInverseRemove(otherEnd, featureID, msgs);
   }
 
Example #18
Source File: TBaseElementImpl.java    From bonita-studio with 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 ModelPackage.TBASE_ELEMENT__DOCUMENTATION:
			return ((InternalEList<?>)getDocumentation()).basicRemove(otherEnd, msgs);
		case ModelPackage.TBASE_ELEMENT__EXTENSION_ELEMENTS:
			return basicSetExtensionElements(null, msgs);
		case ModelPackage.TBASE_ELEMENT__ANY_ATTRIBUTE:
			return ((InternalEList<?>)getAnyAttribute()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #19
Source File: MainImpl.java    From xtext-eclipse with 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 QuickfixCrossrefPackage.MAIN__ELEMENTS:
      return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #20
Source File: DocletImpl.java    From n4js with 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 DomPackage.DOCLET__LINE_TAGS:
			return ((InternalEList<?>)getLineTags()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #21
Source File: ExtensionAttributeValueImpl.java    From fixflow with Apache 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 Bpmn2Package.EXTENSION_ATTRIBUTE_VALUE__VALUE:
        return ((InternalEList<?>) getValue()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #22
Source File: SectionImpl.java    From xtext-eclipse with 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 Bug332217TestLanguagePackage.SECTION__TITLE:
      return basicSetTitle(null, msgs);
    case Bug332217TestLanguagePackage.SECTION__CELLS:
      return ((InternalEList<?>)getCells()).basicRemove(otherEnd, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #23
Source File: StructuralTypeRefImpl.java    From n4js with 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 TypeRefsPackage.STRUCTURAL_TYPE_REF__AST_STRUCTURAL_MEMBERS:
			return ((InternalEList<?>)getAstStructuralMembers()).basicRemove(otherEnd, msgs);
		case TypeRefsPackage.STRUCTURAL_TYPE_REF__GEN_STRUCTURAL_MEMBERS:
			return ((InternalEList<?>)getGenStructuralMembers()).basicRemove(otherEnd, msgs);
		case TypeRefsPackage.STRUCTURAL_TYPE_REF__POSTPONED_SUBSTITUTIONS:
			return ((InternalEList<?>)getPostponedSubstitutions()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #24
Source File: JvmAnnotationValueBuilder.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public AnnotationVisitor visitAnnotation(String name, String desc) {
	if (name != null) {
		throw new IllegalStateException();
	}
	if (result == null) {
		result = TypesFactory.eINSTANCE.createJvmAnnotationAnnotationValue();
	}
	InternalEList<JvmAnnotationReference> nestedValues = (InternalEList<JvmAnnotationReference>) ((JvmAnnotationAnnotationValue) result).getValues();
	JvmAnnotationReferenceBuilder annotation = new JvmAnnotationReferenceBuilder(nestedValues, desc, proxies);
	return annotation;
}
 
Example #25
Source File: MainProcessImpl.java    From bonita-studio with 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 ProcessPackage.MAIN_PROCESS__MESSAGE_CONNECTIONS:
               return ((InternalEList<?>)getMessageConnections()).basicRemove(otherEnd, msgs);
       }
       return super.eInverseRemove(otherEnd, featureID, msgs);
   }
 
Example #26
Source File: FormalParametersTypeImpl.java    From bonita-studio with 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 Xpdl1Package.FORMAL_PARAMETERS_TYPE__FORMAL_PARAMETER:
			return ((InternalEList<?>)getFormalParameter()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #27
Source File: ParserRuleImpl.java    From xtext-core with 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 XtextPackage.PARSER_RULE__PARAMETERS:
			return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #28
Source File: ParameterizedPropertyAccessExpressionImpl.java    From n4js with 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 N4JSPackage.PARAMETERIZED_PROPERTY_ACCESS_EXPRESSION__TYPE_ARGS:
			return ((InternalEList<?>)getTypeArgs()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #29
Source File: ObjectLiteralImpl.java    From n4js with 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 N4JSPackage.OBJECT_LITERAL__PROPERTY_ASSIGNMENTS:
			return ((InternalEList<?>)getPropertyAssignments()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #30
Source File: MPlugin.java    From kieker with Apache License 2.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 MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutputPorts()).basicAdd(otherEnd, msgs);
		case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getDisplays()).basicAdd(otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}