org.eclipse.xtext.common.types.xtext.ui
Class TypeAwareReferenceProposalCreator

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
      extended by org.eclipse.xtext.common.types.xtext.ui.TypeAwareReferenceProposalCreator
Direct Known Subclasses:
XbaseReferenceProposalCreator

public class TypeAwareReferenceProposalCreator
extends AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
TypeAwareReferenceProposalCreator()
           
 
Method Summary
protected  org.eclipse.swt.graphics.Image computeImage(boolean isInnerType, int modifiers)
           
protected  org.eclipse.emf.ecore.EClass getEReferenceType(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
           
protected  com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> getWrappedFactory(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
getScopeProvider, lookupCrossReference, lookupCrossReference, queryScope, setScopeProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeAwareReferenceProposalCreator

public TypeAwareReferenceProposalCreator()
Method Detail

getWrappedFactory

protected com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> getWrappedFactory(org.eclipse.emf.ecore.EObject model,
                                                                                                                                          org.eclipse.emf.ecore.EReference reference,
                                                                                                                                          com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
Overrides:
getWrappedFactory in class AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator

computeImage

protected org.eclipse.swt.graphics.Image computeImage(boolean isInnerType,
                                                      int modifiers)

getEReferenceType

protected org.eclipse.emf.ecore.EClass getEReferenceType(org.eclipse.emf.ecore.EObject context,
                                                         org.eclipse.emf.ecore.EReference reference)