Search in sources :

Example 6 with ParameterizedTypeReference

use of org.eclipse.xtext.xbase.typesystem.references.ParameterizedTypeReference in project xtext-eclipse by eclipse.

the class JavaTypeQuickfixes method getVisibilityHelper.

protected ContextualVisibilityHelper getVisibilityHelper(final JvmDeclaredType contextType) {
    StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, contextType);
    final ParameterizedTypeReference contextTypeRef = owner.newParameterizedTypeReference(contextType);
    final ContextualVisibilityHelper visibilityHelper = new ContextualVisibilityHelper(contextTypeRef);
    return visibilityHelper;
}
Also used : ContextualVisibilityHelper(org.eclipse.xtext.xbase.typesystem.util.ContextualVisibilityHelper) ParameterizedTypeReference(org.eclipse.xtext.xbase.typesystem.references.ParameterizedTypeReference) StandardTypeReferenceOwner(org.eclipse.xtext.xbase.typesystem.references.StandardTypeReferenceOwner)

Aggregations

ParameterizedTypeReference (org.eclipse.xtext.xbase.typesystem.references.ParameterizedTypeReference)6 StandardTypeReferenceOwner (org.eclipse.xtext.xbase.typesystem.references.StandardTypeReferenceOwner)6 JvmOperation (org.eclipse.xtext.common.types.JvmOperation)3 XAbstractFeatureCall (org.eclipse.xtext.xbase.XAbstractFeatureCall)3 XExpression (org.eclipse.xtext.xbase.XExpression)3 ITypeReferenceOwner (org.eclipse.xtext.xbase.typesystem.references.ITypeReferenceOwner)3 XtendClass (org.eclipse.xtend.core.xtend.XtendClass)2 XtendFile (org.eclipse.xtend.core.xtend.XtendFile)2 XtendFunction (org.eclipse.xtend.core.xtend.XtendFunction)2 XtendMember (org.eclipse.xtend.core.xtend.XtendMember)2 XtendTypeDeclaration (org.eclipse.xtend.core.xtend.XtendTypeDeclaration)2 JvmDeclaredType (org.eclipse.xtext.common.types.JvmDeclaredType)2 JvmIdentifiableElement (org.eclipse.xtext.common.types.JvmIdentifiableElement)2 XBlockExpression (org.eclipse.xtext.xbase.XBlockExpression)2 BottomResolvedOperation (org.eclipse.xtext.xbase.typesystem.override.BottomResolvedOperation)2 LightweightTypeReference (org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference)2 JvmFormalParameter (org.eclipse.xtext.common.types.JvmFormalParameter)1 JvmGenericType (org.eclipse.xtext.common.types.JvmGenericType)1 JvmType (org.eclipse.xtext.common.types.JvmType)1 JvmTypeParameter (org.eclipse.xtext.common.types.JvmTypeParameter)1