org.eclipse.xtext.xbase.ui.contentassist
Class XbaseReferenceProposalCreator
java.lang.Object
  
org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
      
org.eclipse.xtext.common.types.xtext.ui.TypeAwareReferenceProposalCreator
          
org.eclipse.xtext.xbase.ui.contentassist.XbaseReferenceProposalCreator
- All Implemented Interfaces: 
 - RepeatedContentAssistProcessor.ModeAware
 
public class XbaseReferenceProposalCreator
- extends TypeAwareReferenceProposalCreator
- implements RepeatedContentAssistProcessor.ModeAware
  
- Author:
 
  - Sebastian Zarnekow - Initial contribution and API
 
 
| 
Method Summary | 
protected  org.eclipse.swt.graphics.Image | 
computeConstructorImage(boolean inner,
                        boolean interfaceOrAnnotation,
                        int modifiers,
                        int decorator)
 
            | 
protected  org.eclipse.swt.graphics.Image | 
computeFieldImage(boolean interfaceOrAnnotation,
                  int modifiers,
                  int decorator)
 
            | 
protected  org.eclipse.swt.graphics.Image | 
computeImage(JvmFeature feature)
 
            | 
protected  org.eclipse.swt.graphics.Image | 
computeMethodImage(boolean interfaceOrAnnotation,
                   int modifiers,
                   int decorator)
 
            | 
 java.lang.String | 
getNextCategory()
 
            | 
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)
 
            | 
 boolean | 
isLastMode()
 
            | 
protected  boolean | 
isShowAllProposals()
 
            | 
protected  boolean | 
isShowJavaLikeProposals()
 
            | 
protected  boolean | 
isShowShortestSugar()
 
            | 
protected  boolean | 
isShowSmartProposals()
 
            | 
protected  boolean | 
isShowTypeProposals()
 
            | 
 void | 
lookupCrossReference(IScope scope,
                     org.eclipse.emf.ecore.EObject model,
                     org.eclipse.emf.ecore.EReference reference,
                     ICompletionProposalAcceptor acceptor,
                     com.google.common.base.Predicate<IEObjectDescription> filter,
                     com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
 
            | 
 void | 
nextMode()
 
          Announce that proposals will be computed. | 
 java.lang.Iterable<IEObjectDescription> | 
queryScope(IScope scope,
           org.eclipse.emf.ecore.EObject model,
           org.eclipse.emf.ecore.EReference reference,
           com.google.common.base.Predicate<IEObjectDescription> filter)
 
            | 
 void | 
reset()
 
          Reset the proposal provider's repetition state. | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
XbaseReferenceProposalCreator
public XbaseReferenceProposalCreator()
reset
public void reset()
- Description copied from interface: 
RepeatedContentAssistProcessor.ModeAware 
- Reset the proposal provider's repetition state. The intial
 proposals should be displayed after a subsequent
 call to 
RepeatedContentAssistProcessor.ModeAware.nextMode().
- Specified by:
 reset in interface RepeatedContentAssistProcessor.ModeAware
 
 
 
nextMode
public void nextMode()
- Description copied from interface: 
RepeatedContentAssistProcessor.ModeAware 
- Announce that proposals will be computed.
- Specified by:
 nextMode in interface RepeatedContentAssistProcessor.ModeAware
 
 
 
getNextCategory
public java.lang.String getNextCategory()
- Specified by:
 getNextCategory in interface RepeatedContentAssistProcessor.ModeAware
 
- Returns:
 - a description of the proposal category that will be
   retrieved after a subsequent invocation of 
RepeatedContentAssistProcessor.ModeAware.nextMode(). 
 
isLastMode
public boolean isLastMode()
- Specified by:
 isLastMode in interface RepeatedContentAssistProcessor.ModeAware
 
- Returns:
 true if a subsequent call to RepeatedContentAssistProcessor.ModeAware.nextMode() will
 show the proposals for the first mode.
 
isShowTypeProposals
protected boolean isShowTypeProposals()
 
 
isShowShortestSugar
protected boolean isShowShortestSugar()
 
 
isShowJavaLikeProposals
protected boolean isShowJavaLikeProposals()
 
 
isShowAllProposals
protected boolean isShowAllProposals()
 
 
isShowSmartProposals
protected boolean isShowSmartProposals()
 
 
lookupCrossReference
public void lookupCrossReference(IScope scope,
                                 org.eclipse.emf.ecore.EObject model,
                                 org.eclipse.emf.ecore.EReference reference,
                                 ICompletionProposalAcceptor acceptor,
                                 com.google.common.base.Predicate<IEObjectDescription> filter,
                                 com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
- Overrides:
 lookupCrossReference in class AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
 
 
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 TypeAwareReferenceProposalCreator
 
 
queryScope
public java.lang.Iterable<IEObjectDescription> queryScope(IScope scope,
                                                          org.eclipse.emf.ecore.EObject model,
                                                          org.eclipse.emf.ecore.EReference reference,
                                                          com.google.common.base.Predicate<IEObjectDescription> filter)
- Overrides:
 queryScope in class AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
 
 
computeImage
protected org.eclipse.swt.graphics.Image computeImage(JvmFeature feature)
 
 
computeMethodImage
protected org.eclipse.swt.graphics.Image computeMethodImage(boolean interfaceOrAnnotation,
                                                            int modifiers,
                                                            int decorator)
 
 
computeConstructorImage
protected org.eclipse.swt.graphics.Image computeConstructorImage(boolean inner,
                                                                 boolean interfaceOrAnnotation,
                                                                 int modifiers,
                                                                 int decorator)
 
 
computeFieldImage
protected org.eclipse.swt.graphics.Image computeFieldImage(boolean interfaceOrAnnotation,
                                                           int modifiers,
                                                           int decorator)