public class XtextProposalProvider extends AbstractXtextProposalProvider
Modifier and Type | Class and Description |
---|---|
static class |
XtextProposalProvider.ClassifierPrefixMatcher |
AbstractJavaBasedContentProposalProvider.DefaultProposalCreator, AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
AbstractContentProposalProvider.DefaultContentAssistProcessorSwitch, AbstractContentProposalProvider.NullSafeCompletionProposalAcceptor
Constructor and Description |
---|
XtextProposalProvider() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
appendReturnType(AbstractRule overrideMe,
Grammar grammar,
java.lang.StringBuilder newRuleFragment) |
protected java.util.Map<java.lang.String,AbstractRule> |
collectExistingRules(Grammar grammar) |
protected java.util.Set<AbstractRule> |
collectOverrideCandidates(Grammar grammar) |
void |
complete_ParserRule(org.eclipse.emf.ecore.EObject model,
RuleCall ruleCall,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeAction_Feature(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeAssignment_Feature(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor)
Not a full featured solution for the computation of available structural features, but it is sufficient for some
interesting 85%.
|
void |
completeGeneratedMetamodel_Alias(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeGrammar_HiddenTokens(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeGrammar_Name(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
protected void |
completeHiddenTokens(Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor)
Do not propose terminal fragments in hidden token sections.
|
void |
completeParserRule_HiddenTokens(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeParserRule_Name(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeReferencedMetamodel_Alias(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeReferencedMetamodel_EPackage(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
void |
completeRuleCall_Rule(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor)
Do not propose enum and parser rules inside of terminal rules, do not propose terminal fragments in parser rules.
|
protected void |
completeSpecialAttributeAssignment(java.lang.String specialAttribute,
int priorityFactor,
java.lang.Iterable<java.lang.String> processedFeatures,
com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> factory,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
protected java.util.Set<java.lang.String> |
completeStructuralFeatures(ContentAssistContext context,
com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> factory,
ICompletionProposalAcceptor acceptor,
java.lang.Iterable<? extends org.eclipse.emf.ecore.EStructuralFeature> features) |
void |
completeTypeRef_Classifier(org.eclipse.emf.ecore.EObject model,
Assignment assignment,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
protected org.eclipse.jface.text.contentassist.ICompletionProposal |
createFeatureProposal(org.eclipse.emf.ecore.EStructuralFeature feature,
int priorityFactor,
com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> factory,
ContentAssistContext context) |
protected void |
createOverrideProposal(AbstractRule overrideMe,
Grammar grammar,
ContentAssistContext context,
ICompletionProposalAcceptor acceptor) |
protected java.lang.String |
getDisplayString(org.eclipse.emf.ecore.EObject element,
java.lang.String proposal,
java.lang.String shortName) |
protected org.eclipse.jface.viewers.StyledString |
getKeywordDisplayString(Keyword keyword) |
protected com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> |
getProposalFactory(java.lang.String ruleName,
ContentAssistContext contentAssistContext) |
protected org.eclipse.jface.viewers.StyledString |
getStyledDisplayString(org.eclipse.emf.ecore.EObject element,
java.lang.String qualifiedName,
java.lang.String shortName) |
protected org.eclipse.jface.viewers.StyledString |
getStyledDisplayString(IEObjectDescription description) |
complete_AbstractMetamodelDeclaration, complete_AbstractNegatedToken, complete_AbstractRule, complete_AbstractTerminal, complete_AbstractToken, complete_AbstractTokenWithCardinality, complete_Action, complete_Alternatives, complete_AssignableAlternatives, complete_AssignableTerminal, complete_Assignment, complete_CharacterRange, complete_CrossReference, complete_CrossReferenceableTerminal, complete_EnumLiteralDeclaration, complete_EnumLiterals, complete_EnumRule, complete_EOF, complete_GeneratedMetamodel, complete_Grammar, complete_GrammarID, complete_Group, complete_Keyword, complete_NegatedToken, complete_ParenthesizedAssignableElement, complete_ParenthesizedElement, complete_ParenthesizedTerminalElement, complete_PredicatedGroup, complete_PredicatedKeyword, complete_PredicatedRuleCall, complete_ReferencedMetamodel, complete_RuleCall, complete_TerminalAlternatives, complete_TerminalGroup, complete_TerminalRule, complete_TerminalToken, complete_TerminalTokenElement, complete_TypeRef, complete_UnorderedGroup, complete_UntilToken, complete_Wildcard, completeAbstractTokenWithCardinality_Cardinality, completeAction_Operator, completeAction_Type, completeAlternatives_Elements, completeAssignableAlternatives_Elements, completeAssignment_FirstSetPredicated, completeAssignment_Operator, completeAssignment_Predicated, completeAssignment_Terminal, completeCharacterRange_Right, completeCrossReference_Terminal, completeCrossReference_Type, completeEnumLiteralDeclaration_EnumLiteral, completeEnumLiteralDeclaration_Literal, completeEnumLiterals_Elements, completeEnumRule_Alternatives, completeEnumRule_Name, completeEnumRule_Type, completeGeneratedMetamodel_EPackage, completeGeneratedMetamodel_Name, completeGrammar_DefinesHiddenTokens, completeGrammar_MetamodelDeclarations, completeGrammar_Rules, completeGrammar_UsedGrammars, completeGroup_Elements, completeKeyword_Value, completeNegatedToken_Terminal, completeParserRule_Alternatives, completeParserRule_DefinesHiddenTokens, completeParserRule_Type, completePredicatedGroup_Elements, completePredicatedGroup_FirstSetPredicated, completePredicatedGroup_Predicated, completePredicatedKeyword_FirstSetPredicated, completePredicatedKeyword_Predicated, completePredicatedKeyword_Value, completePredicatedRuleCall_FirstSetPredicated, completePredicatedRuleCall_Predicated, completePredicatedRuleCall_Rule, completeTerminalAlternatives_Elements, completeTerminalGroup_Elements, completeTerminalRule_Alternatives, completeTerminalRule_Fragment, completeTerminalRule_Name, completeTerminalRule_Type, completeTerminalToken_Cardinality, completeTypeRef_Metamodel, completeUnorderedGroup_Elements, completeUntilToken_Terminal
complete_ANY_OTHER, complete_ID, complete_INT, complete_ML_COMMENT, complete_SL_COMMENT, complete_STRING, complete_WS, doCreateIdProposals, doCreateIntProposals, doCreateStringProposals
announceProcessing, completeAssignment, completeKeyword, completeRuleCall, createProposals, getCrossReferenceProposalCreator, getHover, getScopeProvider, invokeMethod, lookupCrossReference, lookupCrossReference, lookupCrossReference, lookupCrossReference, lookupCrossReference, lookupCrossReference, setCrossReferenceProposalCreator, setScopeProvider
createCompletionProposal, createCompletionProposal, createCompletionProposal, createCompletionProposal, createSelector, doCreateProposal, doCreateProposal, getConflictHelper, getImage, getLabelProvider, getPriorityHelper, getQualifiedNameConverter, getValueConverter, isValidProposal, setConflictHelper, setLabelProvider, setPriorityHelper, setValueConverter
public void completeGrammar_Name(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeGrammar_Name
in class AbstractXtextProposalProvider
public void completeReferencedMetamodel_EPackage(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeReferencedMetamodel_EPackage
in class AbstractXtextProposalProvider
public void completeGeneratedMetamodel_Alias(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeGeneratedMetamodel_Alias
in class AbstractXtextProposalProvider
public void completeReferencedMetamodel_Alias(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeReferencedMetamodel_Alias
in class AbstractXtextProposalProvider
protected org.eclipse.jface.viewers.StyledString getKeywordDisplayString(Keyword keyword)
getKeywordDisplayString
in class AbstractContentProposalProvider
protected org.eclipse.jface.viewers.StyledString getStyledDisplayString(org.eclipse.emf.ecore.EObject element, java.lang.String qualifiedName, java.lang.String shortName)
getStyledDisplayString
in class AbstractContentProposalProvider
protected org.eclipse.jface.viewers.StyledString getStyledDisplayString(IEObjectDescription description)
getStyledDisplayString
in class AbstractContentProposalProvider
protected java.lang.String getDisplayString(org.eclipse.emf.ecore.EObject element, java.lang.String proposal, java.lang.String shortName)
getDisplayString
in class AbstractContentProposalProvider
public void completeAssignment_Feature(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeAssignment_Feature
in class AbstractXtextProposalProvider
protected void completeSpecialAttributeAssignment(java.lang.String specialAttribute, int priorityFactor, java.lang.Iterable<java.lang.String> processedFeatures, com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> factory, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
protected java.util.Set<java.lang.String> completeStructuralFeatures(ContentAssistContext context, com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> factory, ICompletionProposalAcceptor acceptor, java.lang.Iterable<? extends org.eclipse.emf.ecore.EStructuralFeature> features)
protected org.eclipse.jface.text.contentassist.ICompletionProposal createFeatureProposal(org.eclipse.emf.ecore.EStructuralFeature feature, int priorityFactor, com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> factory, ContentAssistContext context)
public void completeAction_Feature(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeAction_Feature
in class AbstractXtextProposalProvider
public void completeTypeRef_Classifier(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeTypeRef_Classifier
in class AbstractXtextProposalProvider
public void complete_ParserRule(org.eclipse.emf.ecore.EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
complete_ParserRule
in class AbstractXtextProposalProvider
protected void createOverrideProposal(AbstractRule overrideMe, Grammar grammar, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
protected boolean appendReturnType(AbstractRule overrideMe, Grammar grammar, java.lang.StringBuilder newRuleFragment)
protected java.util.Set<AbstractRule> collectOverrideCandidates(Grammar grammar)
protected java.util.Map<java.lang.String,AbstractRule> collectExistingRules(Grammar grammar)
public void completeParserRule_Name(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeParserRule_Name
in class AbstractXtextProposalProvider
public void completeParserRule_HiddenTokens(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeParserRule_HiddenTokens
in class AbstractXtextProposalProvider
public void completeGrammar_HiddenTokens(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeGrammar_HiddenTokens
in class AbstractXtextProposalProvider
protected void completeHiddenTokens(Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
public void completeRuleCall_Rule(org.eclipse.emf.ecore.EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
completeRuleCall_Rule
in class AbstractXtextProposalProvider
protected com.google.common.base.Function<IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> getProposalFactory(java.lang.String ruleName, ContentAssistContext contentAssistContext)
getProposalFactory
in class AbstractJavaBasedContentProposalProvider