Java Code Examples for org.eclipse.xtext.common.types.TypesPackage#JVM_COMPONENT_TYPE__ARRAY_TYPE

The following examples show how to use org.eclipse.xtext.common.types.TypesPackage#JVM_COMPONENT_TYPE__ARRAY_TYPE . 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: JvmDeclaredTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
{
	if (baseClass == JvmType.class)
	{
		switch (derivedFeatureID)
		{
			default: return -1;
		}
	}
	if (baseClass == JvmComponentType.class)
	{
		switch (derivedFeatureID)
		{
			case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: return TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE;
			default: return -1;
		}
	}
	return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
 
Example 2
Source File: JvmDeclaredTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
{
	if (baseClass == JvmType.class)
	{
		switch (baseFeatureID)
		{
			default: return -1;
		}
	}
	if (baseClass == JvmComponentType.class)
	{
		switch (baseFeatureID)
		{
			case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE: return TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE;
			default: return -1;
		}
	}
	return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
 
Example 3
Source File: JvmComponentTypeImplCustom.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
	switch (featureID)
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			// don't demand-create the array if queried reflectively
			return arrayType;
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 4
Source File: JvmComponentTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetArrayType(JvmArrayType newArrayType, NotificationChain msgs)
{
	JvmArrayType oldArrayType = arrayType;
	arrayType = newArrayType;
	if (eNotificationRequired())
	{
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE, oldArrayType, newArrayType);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 5
Source File: JvmComponentTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
	switch (featureID)
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			if (arrayType != null)
				msgs = ((InternalEObject)arrayType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE, null, msgs);
			return basicSetArrayType((JvmArrayType)otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
Example 6
Source File: JvmComponentTypeImpl.java    From xtext-extras 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 TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			return basicSetArrayType(null, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 7
Source File: JvmComponentTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
	switch (featureID)
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			return getArrayType();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 8
Source File: JvmComponentTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
	switch (featureID)
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			setArrayType((JvmArrayType)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 9
Source File: JvmComponentTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
	switch (featureID)
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			setArrayType((JvmArrayType)null);
			return;
	}
	super.eUnset(featureID);
}
 
Example 10
Source File: JvmComponentTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
	switch (featureID)
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			return arrayType != null;
	}
	return super.eIsSet(featureID);
}
 
Example 11
Source File: JvmComponentTypeItemProvider.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification)
{
	updateChildren(notification);

	switch (notification.getFeatureID(JvmComponentType.class))
	{
		case TypesPackage.JVM_COMPONENT_TYPE__ARRAY_TYPE:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
			return;
	}
	super.notifyChanged(notification);
}