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

The following examples show how to use org.eclipse.xtext.common.types.TypesPackage#JVM_DECLARED_TYPE__ABSTRACT . 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 Object eGet(int featureID, boolean resolve, boolean coreType)
{
	switch (featureID)
	{
		case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE:
			return getArrayType();
		case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES:
			return getSuperTypes();
		case TypesPackage.JVM_DECLARED_TYPE__MEMBERS:
			return getMembers();
		case TypesPackage.JVM_DECLARED_TYPE__ABSTRACT:
			return isAbstract();
		case TypesPackage.JVM_DECLARED_TYPE__STATIC:
			return isStatic();
		case TypesPackage.JVM_DECLARED_TYPE__FINAL:
			return isFinal();
		case TypesPackage.JVM_DECLARED_TYPE__PACKAGE_NAME:
			return getPackageName();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
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 boolean eIsSet(int featureID)
{
	switch (featureID)
	{
		case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE:
			return arrayType != null;
		case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES:
			return superTypes != null && !superTypes.isEmpty();
		case TypesPackage.JVM_DECLARED_TYPE__MEMBERS:
			return members != null && !members.isEmpty();
		case TypesPackage.JVM_DECLARED_TYPE__ABSTRACT:
			return abstract_ != ABSTRACT_EDEFAULT;
		case TypesPackage.JVM_DECLARED_TYPE__STATIC:
			return static_ != STATIC_EDEFAULT;
		case TypesPackage.JVM_DECLARED_TYPE__FINAL:
			return final_ != FINAL_EDEFAULT;
		case TypesPackage.JVM_DECLARED_TYPE__PACKAGE_NAME:
			return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName);
	}
	return super.eIsSet(featureID);
}
 
Example 3
Source File: JvmDeclaredTypeItemProvider.java    From xtext-eclipse with Eclipse Public License 2.0 6 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(JvmDeclaredType.class))
	{
		case TypesPackage.JVM_DECLARED_TYPE__ABSTRACT:
		case TypesPackage.JVM_DECLARED_TYPE__STATIC:
		case TypesPackage.JVM_DECLARED_TYPE__FINAL:
		case TypesPackage.JVM_DECLARED_TYPE__PACKAGE_NAME:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
		case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE:
		case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES:
		case TypesPackage.JVM_DECLARED_TYPE__MEMBERS:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
			return;
	}
	super.notifyChanged(notification);
}
 
Example 4
Source File: JvmDeclaredTypeImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
	switch (featureID)
	{
		case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE:
			setArrayType((JvmArrayType)newValue);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES:
			getSuperTypes().clear();
			getSuperTypes().addAll((Collection<? extends JvmTypeReference>)newValue);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__MEMBERS:
			getMembers().clear();
			getMembers().addAll((Collection<? extends JvmMember>)newValue);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__ABSTRACT:
			setAbstract((Boolean)newValue);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__STATIC:
			setStatic((Boolean)newValue);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__FINAL:
			setFinal((Boolean)newValue);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__PACKAGE_NAME:
			setPackageName((String)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 5
Source File: JvmDeclaredTypeImpl.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_DECLARED_TYPE__ARRAY_TYPE:
			setArrayType((JvmArrayType)null);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES:
			getSuperTypes().clear();
			return;
		case TypesPackage.JVM_DECLARED_TYPE__MEMBERS:
			getMembers().clear();
			return;
		case TypesPackage.JVM_DECLARED_TYPE__ABSTRACT:
			setAbstract(ABSTRACT_EDEFAULT);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__STATIC:
			setStatic(STATIC_EDEFAULT);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__FINAL:
			setFinal(FINAL_EDEFAULT);
			return;
		case TypesPackage.JVM_DECLARED_TYPE__PACKAGE_NAME:
			setPackageName(PACKAGE_NAME_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}