Class BslParserBasedContentAssistContextFactory.StatefulFactory

  • All Implemented Interfaces:
    com.google.common.base.Function<org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Builder,​org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext>, Function<org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Builder,​org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext>
    Enclosing class:
    BslParserBasedContentAssistContextFactory

    public static class BslParserBasedContentAssistContextFactory.StatefulFactory
    extends org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
    Creates grammatical rules context for content assist
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory

        completionOffset, completionPrefixProvider, contentAssistContextProvider, contextBuilders, currentModel, currentNode, datatypeNode, lastCompleteNode, lastVisibleNode, lexer, matcher, parser, parseResult, resource, rootNode, selection, tokenDefProvider, viewer
    • Constructor Summary

      Constructors 
      Constructor Description
      StatefulFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.google.common.collect.Multimap<org.eclipse.emf.ecore.EObject,​org.eclipse.xtext.AbstractElement> computeCurrentModel​(org.eclipse.emf.ecore.EObject currentModel, org.eclipse.xtext.nodemodel.INode lastCompleteNode, Collection<org.eclipse.xtext.AbstractElement> followElements)  
      protected void createContextsForLastCompleteNode​(org.eclipse.emf.ecore.EObject previousModel, boolean strict)  
      protected org.eclipse.xtext.nodemodel.INode getLastCompleteNodeByOffset​(org.eclipse.xtext.nodemodel.INode node, int offsetPosition)  
      String getPrefix​(org.eclipse.xtext.nodemodel.INode prefixNode)  
      protected void handleLastCompleteNodeAsPartOfDatatypeNode()  
      protected void handleLastCompleteNodeIsAtEndOfDatatypeNode()  
      protected void initializeNodeAndModelData()  
      void setExecutorService​(ExecutorService pool)
      Sets ExcutorService for multithreading creating grammatical rules context.
      • Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory

        apply, canBeCalledAfter, computeFollowElements, computeFollowElements, computeFollowElements, computeParamStackOffset, create, createCallHierachyHelper, doComputePrefix, doCreateContext, doCreateContexts, doCreateContexts, getCompletionOffset, getContainingDatatypeRuleNode, getCurrentNode, getInputToParse, getInputToParse, getNodeTextUpToCompletionOffset, getParser, getRule, handleLastCompleteNodeHasNoGrammarElement, handleLastCompleteNodeIsPartOfLookahead, initializeAndAdjustCompletionOffset, initializeFromViewerAndResource, isErrorToken, isLikelyToBeValidProposal, setParser, setPool, updateParameterConfig
      • Methods inherited from interface com.google.common.base.Function

        equals
    • Constructor Detail

      • StatefulFactory

        public StatefulFactory()
    • Method Detail

      • setExecutorService

        public void setExecutorService​(ExecutorService pool)
        Sets ExcutorService for multithreading creating grammatical rules context. See ParserBasedContentAssistContextFactory.StatefulFactory.setPool(ExecutorService)
        Parameters:
        pool - ExcutorService, can't be null
      • getPrefix

        public String getPrefix​(org.eclipse.xtext.nodemodel.INode prefixNode)
        Overrides:
        getPrefix in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
      • handleLastCompleteNodeIsAtEndOfDatatypeNode

        protected void handleLastCompleteNodeIsAtEndOfDatatypeNode()
                                                            throws org.eclipse.jface.text.BadLocationException
        Overrides:
        handleLastCompleteNodeIsAtEndOfDatatypeNode in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
        Throws:
        org.eclipse.jface.text.BadLocationException
      • handleLastCompleteNodeAsPartOfDatatypeNode

        protected void handleLastCompleteNodeAsPartOfDatatypeNode()
                                                           throws org.eclipse.jface.text.BadLocationException
        Overrides:
        handleLastCompleteNodeAsPartOfDatatypeNode in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
        Throws:
        org.eclipse.jface.text.BadLocationException
      • createContextsForLastCompleteNode

        protected void createContextsForLastCompleteNode​(org.eclipse.emf.ecore.EObject previousModel,
                                                         boolean strict)
                                                  throws org.eclipse.jface.text.BadLocationException
        Overrides:
        createContextsForLastCompleteNode in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
        Throws:
        org.eclipse.jface.text.BadLocationException
      • initializeNodeAndModelData

        protected void initializeNodeAndModelData()
        Overrides:
        initializeNodeAndModelData in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
      • getLastCompleteNodeByOffset

        protected org.eclipse.xtext.nodemodel.INode getLastCompleteNodeByOffset​(org.eclipse.xtext.nodemodel.INode node,
                                                                                int offsetPosition)
        Overrides:
        getLastCompleteNodeByOffset in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory
      • computeCurrentModel

        protected com.google.common.collect.Multimap<org.eclipse.emf.ecore.EObject,​org.eclipse.xtext.AbstractElement> computeCurrentModel​(org.eclipse.emf.ecore.EObject currentModel,
                                                                                                                                                org.eclipse.xtext.nodemodel.INode lastCompleteNode,
                                                                                                                                                Collection<org.eclipse.xtext.AbstractElement> followElements)
        Overrides:
        computeCurrentModel in class org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.StatefulFactory