Java Code Examples for org.eclipse.xtext.common.types.TypesPackage#JVM_GENERIC_TYPE__INTERFACE
The following examples show how to use
org.eclipse.xtext.common.types.TypesPackage#JVM_GENERIC_TYPE__INTERFACE .
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: JvmGenericTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_GENERIC_TYPE__TYPE_PARAMETERS: return getTypeParameters(); case TypesPackage.JVM_GENERIC_TYPE__INTERFACE: return isInterface(); case TypesPackage.JVM_GENERIC_TYPE__STRICT_FLOATING_POINT: return isStrictFloatingPoint(); case TypesPackage.JVM_GENERIC_TYPE__ANONYMOUS: return isAnonymous(); } return super.eGet(featureID, resolve, coreType); }
Example 2
Source File: JvmGenericTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_GENERIC_TYPE__TYPE_PARAMETERS: getTypeParameters().clear(); getTypeParameters().addAll((Collection<? extends JvmTypeParameter>)newValue); return; case TypesPackage.JVM_GENERIC_TYPE__INTERFACE: setInterface((Boolean)newValue); return; case TypesPackage.JVM_GENERIC_TYPE__STRICT_FLOATING_POINT: setStrictFloatingPoint((Boolean)newValue); return; case TypesPackage.JVM_GENERIC_TYPE__ANONYMOUS: setAnonymous((Boolean)newValue); return; } super.eSet(featureID, newValue); }
Example 3
Source File: JvmGenericTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TypesPackage.JVM_GENERIC_TYPE__TYPE_PARAMETERS: getTypeParameters().clear(); return; case TypesPackage.JVM_GENERIC_TYPE__INTERFACE: setInterface(INTERFACE_EDEFAULT); return; case TypesPackage.JVM_GENERIC_TYPE__STRICT_FLOATING_POINT: setStrictFloatingPoint(STRICT_FLOATING_POINT_EDEFAULT); return; case TypesPackage.JVM_GENERIC_TYPE__ANONYMOUS: setAnonymous(ANONYMOUS_EDEFAULT); return; } super.eUnset(featureID); }
Example 4
Source File: JvmGenericTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TypesPackage.JVM_GENERIC_TYPE__TYPE_PARAMETERS: return typeParameters != null && !typeParameters.isEmpty(); case TypesPackage.JVM_GENERIC_TYPE__INTERFACE: return interface_ != INTERFACE_EDEFAULT; case TypesPackage.JVM_GENERIC_TYPE__STRICT_FLOATING_POINT: return strictFloatingPoint != STRICT_FLOATING_POINT_EDEFAULT; case TypesPackage.JVM_GENERIC_TYPE__ANONYMOUS: return anonymous != ANONYMOUS_EDEFAULT; } return super.eIsSet(featureID); }
Example 5
Source File: JvmGenericTypeItemProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
/** * 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(JvmGenericType.class)) { case TypesPackage.JVM_GENERIC_TYPE__INTERFACE: case TypesPackage.JVM_GENERIC_TYPE__STRICT_FLOATING_POINT: case TypesPackage.JVM_GENERIC_TYPE__ANONYMOUS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; case TypesPackage.JVM_GENERIC_TYPE__TYPE_PARAMETERS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }