public class XbaseReferenceProposalCreator extends TypeAwareReferenceProposalCreator implements RepeatedContentAssistProcessor.ModeAware
Modifier and Type | Class and Description |
---|---|
protected static class |
XbaseReferenceProposalCreator.MultiNameDescriptions |
Constructor and Description |
---|
XbaseReferenceProposalCreator() |
Modifier and Type | Method and Description |
---|---|
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 |
isLocalVarOrFormalParameter(IEObjectDescription desc) |
protected boolean |
isShowAllProposals() |
protected boolean |
isShowJavaLikeProposals() |
protected boolean |
isShowShortestSugar() |
boolean |
isShowSmartProposals() |
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.
|
computeImage, getEReferenceType
getScopeProvider, lookupCrossReference, setScopeProvider
public void reset()
RepeatedContentAssistProcessor.ModeAware
RepeatedContentAssistProcessor.ModeAware.nextMode()
.reset
in interface RepeatedContentAssistProcessor.ModeAware
public void nextMode()
RepeatedContentAssistProcessor.ModeAware
nextMode
in interface RepeatedContentAssistProcessor.ModeAware
public java.lang.String getNextCategory()
getNextCategory
in interface RepeatedContentAssistProcessor.ModeAware
RepeatedContentAssistProcessor.ModeAware.nextMode()
.public boolean isLastMode()
isLastMode
in interface RepeatedContentAssistProcessor.ModeAware
true
if a subsequent call to RepeatedContentAssistProcessor.ModeAware.nextMode()
will
show the proposals for the first mode.public boolean isShowTypeProposals()
protected boolean isShowShortestSugar()
protected boolean isShowJavaLikeProposals()
protected boolean isShowAllProposals()
public boolean isShowSmartProposals()
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)
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)
getWrappedFactory
in class TypeAwareReferenceProposalCreator
protected boolean isLocalVarOrFormalParameter(IEObjectDescription desc)
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)
queryScope
in class AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
protected org.eclipse.swt.graphics.Image computeImage(JvmFeature feature)
protected org.eclipse.swt.graphics.Image computeMethodImage(boolean interfaceOrAnnotation, int modifiers, int decorator)
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)