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

The following examples show how to use org.eclipse.xtext.common.types.TypesPackage#JVM_MEMBER__IDENTIFIER . 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: JvmMemberImpl.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_MEMBER__DECLARING_TYPE:
			return getDeclaringType();
		case TypesPackage.JVM_MEMBER__VISIBILITY:
			return getVisibility();
		case TypesPackage.JVM_MEMBER__SIMPLE_NAME:
			return getSimpleName();
		case TypesPackage.JVM_MEMBER__IDENTIFIER:
			return getIdentifier();
		case TypesPackage.JVM_MEMBER__DEPRECATED:
			return isDeprecated();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 2
Source File: JvmMemberImpl.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_MEMBER__DECLARING_TYPE:
			return getDeclaringType() != null;
		case TypesPackage.JVM_MEMBER__VISIBILITY:
			return visibility != VISIBILITY_EDEFAULT;
		case TypesPackage.JVM_MEMBER__SIMPLE_NAME:
			return SIMPLE_NAME_EDEFAULT == null ? simpleName != null : !SIMPLE_NAME_EDEFAULT.equals(simpleName);
		case TypesPackage.JVM_MEMBER__IDENTIFIER:
			return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier);
		case TypesPackage.JVM_MEMBER__DEPRECATED:
			return isSetDeprecated();
	}
	return super.eIsSet(featureID);
}
 
Example 3
Source File: JvmMemberItemProvider.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(JvmMember.class))
	{
		case TypesPackage.JVM_MEMBER__VISIBILITY:
		case TypesPackage.JVM_MEMBER__SIMPLE_NAME:
		case TypesPackage.JVM_MEMBER__IDENTIFIER:
		case TypesPackage.JVM_MEMBER__DEPRECATED:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
	}
	super.notifyChanged(notification);
}