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

The following examples show how to use org.eclipse.xtext.common.types.TypesPackage#JVM_OPERATION__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: JvmOperationItemProvider.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(JvmOperation.class))
	{
		case TypesPackage.JVM_OPERATION__STATIC:
		case TypesPackage.JVM_OPERATION__FINAL:
		case TypesPackage.JVM_OPERATION__ABSTRACT:
		case TypesPackage.JVM_OPERATION__SYNCHRONIZED:
		case TypesPackage.JVM_OPERATION__DEFAULT:
		case TypesPackage.JVM_OPERATION__NATIVE:
		case TypesPackage.JVM_OPERATION__STRICT_FLOATING_POINT:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
		case TypesPackage.JVM_OPERATION__RETURN_TYPE:
		case TypesPackage.JVM_OPERATION__DEFAULT_VALUE:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
			return;
	}
	super.notifyChanged(notification);
}
 
Example 2
Source File: JvmOperationImpl.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_OPERATION__STATIC:
			return isStatic();
		case TypesPackage.JVM_OPERATION__FINAL:
			return isFinal();
		case TypesPackage.JVM_OPERATION__ABSTRACT:
			return isAbstract();
		case TypesPackage.JVM_OPERATION__RETURN_TYPE:
			return getReturnType();
		case TypesPackage.JVM_OPERATION__DEFAULT_VALUE:
			return getDefaultValue();
		case TypesPackage.JVM_OPERATION__SYNCHRONIZED:
			return isSynchronized();
		case TypesPackage.JVM_OPERATION__DEFAULT:
			return isDefault();
		case TypesPackage.JVM_OPERATION__NATIVE:
			return isNative();
		case TypesPackage.JVM_OPERATION__STRICT_FLOATING_POINT:
			return isStrictFloatingPoint();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 3
Source File: JvmOperationImpl.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_OPERATION__STATIC:
			setStatic((Boolean)newValue);
			return;
		case TypesPackage.JVM_OPERATION__FINAL:
			setFinal((Boolean)newValue);
			return;
		case TypesPackage.JVM_OPERATION__ABSTRACT:
			setAbstract((Boolean)newValue);
			return;
		case TypesPackage.JVM_OPERATION__RETURN_TYPE:
			setReturnType((JvmTypeReference)newValue);
			return;
		case TypesPackage.JVM_OPERATION__DEFAULT_VALUE:
			setDefaultValue((JvmAnnotationValue)newValue);
			return;
		case TypesPackage.JVM_OPERATION__SYNCHRONIZED:
			setSynchronized((Boolean)newValue);
			return;
		case TypesPackage.JVM_OPERATION__DEFAULT:
			setDefault((Boolean)newValue);
			return;
		case TypesPackage.JVM_OPERATION__NATIVE:
			setNative((Boolean)newValue);
			return;
		case TypesPackage.JVM_OPERATION__STRICT_FLOATING_POINT:
			setStrictFloatingPoint((Boolean)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 4
Source File: JvmOperationImpl.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_OPERATION__STATIC:
			setStatic(STATIC_EDEFAULT);
			return;
		case TypesPackage.JVM_OPERATION__FINAL:
			setFinal(FINAL_EDEFAULT);
			return;
		case TypesPackage.JVM_OPERATION__ABSTRACT:
			setAbstract(ABSTRACT_EDEFAULT);
			return;
		case TypesPackage.JVM_OPERATION__RETURN_TYPE:
			setReturnType((JvmTypeReference)null);
			return;
		case TypesPackage.JVM_OPERATION__DEFAULT_VALUE:
			setDefaultValue((JvmAnnotationValue)null);
			return;
		case TypesPackage.JVM_OPERATION__SYNCHRONIZED:
			setSynchronized(SYNCHRONIZED_EDEFAULT);
			return;
		case TypesPackage.JVM_OPERATION__DEFAULT:
			setDefault(DEFAULT_EDEFAULT);
			return;
		case TypesPackage.JVM_OPERATION__NATIVE:
			setNative(NATIVE_EDEFAULT);
			return;
		case TypesPackage.JVM_OPERATION__STRICT_FLOATING_POINT:
			setStrictFloatingPoint(STRICT_FLOATING_POINT_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}
 
Example 5
Source File: JvmOperationImpl.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_OPERATION__STATIC:
			return static_ != STATIC_EDEFAULT;
		case TypesPackage.JVM_OPERATION__FINAL:
			return final_ != FINAL_EDEFAULT;
		case TypesPackage.JVM_OPERATION__ABSTRACT:
			return abstract_ != ABSTRACT_EDEFAULT;
		case TypesPackage.JVM_OPERATION__RETURN_TYPE:
			return returnType != null;
		case TypesPackage.JVM_OPERATION__DEFAULT_VALUE:
			return defaultValue != null;
		case TypesPackage.JVM_OPERATION__SYNCHRONIZED:
			return synchronized_ != SYNCHRONIZED_EDEFAULT;
		case TypesPackage.JVM_OPERATION__DEFAULT:
			return default_ != DEFAULT_EDEFAULT;
		case TypesPackage.JVM_OPERATION__NATIVE:
			return native_ != NATIVE_EDEFAULT;
		case TypesPackage.JVM_OPERATION__STRICT_FLOATING_POINT:
			return strictFloatingPoint != STRICT_FLOATING_POINT_EDEFAULT;
	}
	return super.eIsSet(featureID);
}