Java Code Examples for org.eclipse.xtext.common.types.TypesPackage#JVM_DECLARED_TYPE__MEMBERS
The following examples show how to use
org.eclipse.xtext.common.types.TypesPackage#JVM_DECLARED_TYPE__MEMBERS .
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: JvmEnumerationTypeImplCustom.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@Override public EList<JvmMember> getMembers() { checkPendingInitialization(); if (members == null) { members = new EObjectContainmentWithInverseEList<JvmMember>(JvmMember.class, this, TypesPackage.JVM_DECLARED_TYPE__MEMBERS, TypesPackage.JVM_MEMBER__DECLARING_TYPE) { private static final long serialVersionUID = 1L; @Override protected void didChange() { literals = null; super.didChange(); } }; } return members; }
Example 2
Source File: JvmDeclaredTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: if (arrayType != null) msgs = ((InternalEObject)arrayType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE, null, msgs); return basicSetArrayType((JvmArrayType)otherEnd, msgs); case TypesPackage.JVM_DECLARED_TYPE__MEMBERS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getMembers()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
Example 3
Source File: JvmDeclaredTypeImpl.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_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 4
Source File: JvmDeclaredTypeImpl.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_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 5
Source File: JvmDeclaredTypeItemProvider.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(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 6
Source File: JvmDeclaredTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EList<JvmMember> getMembers() { if (members == null) { members = new EObjectContainmentWithInverseEList<JvmMember>(JvmMember.class, this, TypesPackage.JVM_DECLARED_TYPE__MEMBERS, TypesPackage.JVM_MEMBER__DECLARING_TYPE); } return members; }
Example 7
Source File: JvmDeclaredTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: return basicSetArrayType(null, msgs); case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES: return ((InternalEList<?>)getSuperTypes()).basicRemove(otherEnd, msgs); case TypesPackage.JVM_DECLARED_TYPE__MEMBERS: return ((InternalEList<?>)getMembers()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example 8
Source File: JvmDeclaredTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- 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 9
Source File: JvmDeclaredTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- 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); }