Class BslProposalProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalFactory, org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider, org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware

    public class BslProposalProvider
    extends AbstractBslProposalProvider
    implements org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
    Proposals for Bsl see http://www.eclipse.org/Xtext/documentation/latest/xtext.html#contentAssist on how to customize content assistant Instances of BslProposalProvider are stateful and are not safe for use by multiple threads.
    • Field Detail

      • isRussian

        protected boolean isRussian
    • Constructor Detail

      • BslProposalProvider

        public BslProposalProvider()
    • Method Detail

      • getTypeMethodName

        public static String getTypeMethodName​(BslGrammarAccess bslGrammar,
                                               boolean isFunc,
                                               boolean isRussian)
        Gets 'Procedure' or 'Function'
        Parameters:
        bslGrammar - BslGrammarAccess
        isFunc - defines what will be return
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        'Procedure' if isFunc == false, else return 'Function'
      • getByValueLiteralName

        public static String getByValueLiteralName​(BslGrammarAccess bslGrammar,
                                                   boolean isRussian)
        Gets 'Val' or 'Знач'
        Parameters:
        bslGrammar - BslGrammarAccess
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        'Val' if isRussian == false, else return 'Знач'
      • getExportLiteralName

        public static String getExportLiteralName​(BslGrammarAccess bslGrammar,
                                                  boolean isRussian)
        Gets 'Export' or 'Экспорт'
        Parameters:
        bslGrammar - BslGrammarAccess
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        'Export' if isRussian == false, else return 'Экспорт'
      • getTypeEndMethodName

        public static String getTypeEndMethodName​(BslGrammarAccess bslGrammar,
                                                  boolean isFunc,
                                                  boolean isRussian)
        Gets 'EndProcedure' or 'EndFunction'
        Parameters:
        bslGrammar - BslGrammarAccess
        isFunc - defines what will be return
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        'EndProcedure' if isFunc == false, else return 'EndFunction'
      • getEventDirective

        public static String getEventDirective​(Module actualBslModule,
                                               Event event,
                                               boolean isRussian)
        Gets compilation directive for Event
        Parameters:
        actualBslModule - current Bsl module, can't be null
        event - processing Event, can't be null
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        actual text presentation of compilation directive or emty string if no directives, never null
      • isOnGetDataAtServerEvent

        public static boolean isOnGetDataAtServerEvent​(Event event)
        Checks that Event has name "OnGetDataAtServer" and corresponding to the type "FormTableExtensionForDynamicList"
        Returns:
        true if Event has name "OnGetDataAtServer" and corresponding to the type "FormTableExtensionForDynamicList", false otherwise
      • getEventAnnotation

        public static String getEventAnnotation​(Module actualBslModule,
                                                Event event,
                                                boolean isRussian)
        Gets string presentation of Bsl annotation link to the adoptable event handler
        Parameters:
        actualBslModule - actual Bsl Module, can't be null
        event - Event of the Bsl
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        string presentation of Bsl annotation link to the adoptable event handler, never null
      • getMethodAnnotation

        public static String getMethodAnnotation​(Module actualBslModule,
                                                 Method method,
                                                 boolean isRussian)
        Gets string presentation of Bsl annotation link to the adoptable method from Bsl Module
        Parameters:
        actualBslModule - actual Bsl Module, can't be null
        event - Event of the Bsl
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        string presentation of Bsl annotation link to the adoptable event handler, never null
      • reset

        public void reset()
        Specified by:
        reset in interface org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
      • nextMode

        public void nextMode()
        Specified by:
        nextMode in interface org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
      • getNextCategory

        public String getNextCategory()
        Specified by:
        getNextCategory in interface org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
      • isLastMode

        public boolean isLastMode()
        Specified by:
        isLastMode in interface org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
      • createProposals

        public void createProposals​(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Start method of creating proposals
        Specified by:
        createProposals in interface org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider
        Overrides:
        createProposals in class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
      • isCommentNode

        public static boolean isCommentNode​(org.eclipse.xtext.nodemodel.INode node,
                                            String ruleName)
        Checks that node is comment node
        Parameters:
        node - checking node, cannot be null
        ruleName - name of the comment rule name in grammar, cannot be null
        Returns:
        true if it is comment node, false otherwise
      • completeKeyword

        public void completeKeyword​(org.eclipse.xtext.Keyword keyword,
                                    org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Filtering keyword proposals
        Overrides:
        completeKeyword in class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
      • complete_GotoStatement

        public void complete_GotoStatement​(org.eclipse.emf.ecore.EObject model,
                                           org.eclipse.xtext.RuleCall ruleCall,
                                           org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                           org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for GOTO statement
        Overrides:
        complete_GotoStatement in class AbstractBslProposalProvider
      • complete_ReturnStatement

        public void complete_ReturnStatement​(org.eclipse.emf.ecore.EObject model,
                                             org.eclipse.xtext.RuleCall ruleCall,
                                             org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                             org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Return statement
        Overrides:
        complete_ReturnStatement in class AbstractBslProposalProvider
      • complete_RaiseStatement

        public void complete_RaiseStatement​(org.eclipse.emf.ecore.EObject model,
                                            org.eclipse.xtext.RuleCall ruleCall,
                                            org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                            org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Raise statement
        Overrides:
        complete_RaiseStatement in class AbstractBslProposalProvider
      • complete_DeclareStatement

        public void complete_DeclareStatement​(org.eclipse.emf.ecore.EObject model,
                                              org.eclipse.xtext.RuleCall ruleCall,
                                              org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                              org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for declare statement (Var ...)
        Overrides:
        complete_DeclareStatement in class AbstractBslProposalProvider
      • complete_DeclareStatementWithPragmas

        public void complete_DeclareStatementWithPragmas​(org.eclipse.emf.ecore.EObject model,
                                                         org.eclipse.xtext.RuleCall ruleCall,
                                                         org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                         org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for declare statement (Var ...)
        Overrides:
        complete_DeclareStatementWithPragmas in class AbstractBslProposalProvider
      • complete_LabeledStatement

        public void complete_LabeledStatement​(org.eclipse.emf.ecore.EObject model,
                                              org.eclipse.xtext.RuleCall ruleCall,
                                              org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                              org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Lablel (~Lablel: )
        Overrides:
        complete_LabeledStatement in class AbstractBslProposalProvider
      • complete_FormalParam

        public void complete_FormalParam​(org.eclipse.emf.ecore.EObject model,
                                         org.eclipse.xtext.RuleCall ruleCall,
                                         org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                         org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Val (Val ... )
        Overrides:
        complete_FormalParam in class AbstractBslProposalProvider
      • complete_AddHandlerStatement

        public void complete_AddHandlerStatement​(org.eclipse.emf.ecore.EObject model,
                                                 org.eclipse.xtext.RuleCall ruleCall,
                                                 org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                 org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for AddHandler
        Overrides:
        complete_AddHandlerStatement in class AbstractBslProposalProvider
      • complete_RemoveHandlerStatement

        public void complete_RemoveHandlerStatement​(org.eclipse.emf.ecore.EObject model,
                                                    org.eclipse.xtext.RuleCall ruleCall,
                                                    org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for RemoveHandler
        Overrides:
        complete_RemoveHandlerStatement in class AbstractBslProposalProvider
      • complete_TryExceptStatement

        public void complete_TryExceptStatement​(org.eclipse.emf.ecore.EObject model,
                                                org.eclipse.xtext.RuleCall ruleCall,
                                                org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for try ...
        Overrides:
        complete_TryExceptStatement in class AbstractBslProposalProvider
      • complete_ExecuteStatement

        public void complete_ExecuteStatement​(org.eclipse.emf.ecore.EObject model,
                                              org.eclipse.xtext.RuleCall ruleCall,
                                              org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                              org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Execute ...
        Overrides:
        complete_ExecuteStatement in class AbstractBslProposalProvider
      • complete_IfStatement

        public void complete_IfStatement​(org.eclipse.emf.ecore.EObject model,
                                         org.eclipse.xtext.RuleCall ruleCall,
                                         org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                         org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for If statement ...
        Overrides:
        complete_IfStatement in class AbstractBslProposalProvider
      • complete_WhileStatement

        public void complete_WhileStatement​(org.eclipse.emf.ecore.EObject model,
                                            org.eclipse.xtext.RuleCall ruleCall,
                                            org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                            org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for While statement ...
        Overrides:
        complete_WhileStatement in class AbstractBslProposalProvider
      • complete_ForStatement

        public void complete_ForStatement​(org.eclipse.emf.ecore.EObject model,
                                          org.eclipse.xtext.RuleCall ruleCall,
                                          org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                          org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for For statement ...
        Overrides:
        complete_ForStatement in class AbstractBslProposalProvider
      • complete_Method

        public void complete_Method​(org.eclipse.emf.ecore.EObject model,
                                    org.eclipse.xtext.RuleCall ruleCall,
                                    org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Procedure and Function ...
        Overrides:
        complete_Method in class AbstractBslProposalProvider
      • complete_Pragma

        public void complete_Pragma​(org.eclipse.emf.ecore.EObject model,
                                    org.eclipse.xtext.RuleCall ruleCall,
                                    org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Procedure and Function ...
        Overrides:
        complete_Pragma in class AbstractBslProposalProvider
      • complete_FeatureResolving

        public void complete_FeatureResolving​(org.eclipse.emf.ecore.EObject model,
                                              org.eclipse.xtext.RuleCall ruleCall,
                                              org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                              org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for allowed methods and variables ...
        Overrides:
        complete_FeatureResolving in class AbstractBslProposalProvider
      • completePragma_Symbol

        public void completePragma_Symbol​(org.eclipse.emf.ecore.EObject model,
                                          org.eclipse.xtext.Assignment assignment,
                                          org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                          org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for type of Pragma
        Overrides:
        completePragma_Symbol in class AbstractBslProposalProvider
      • complete_ExtName

        public void complete_ExtName​(org.eclipse.emf.ecore.EObject model,
                                     org.eclipse.xtext.RuleCall ruleCall,
                                     org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                     org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for DynamicFeatureAccess
        Overrides:
        complete_ExtName in class AbstractBslProposalProvider
      • completeCreator_Type

        public void completeCreator_Type​(org.eclipse.emf.ecore.EObject model,
                                         org.eclipse.xtext.Assignment assignment,
                                         org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                         org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for Constructors
        Overrides:
        completeCreator_Type in class AbstractBslProposalProvider
      • complete_SL_STRING

        public void complete_SL_STRING​(org.eclipse.emf.ecore.EObject model,
                                       org.eclipse.xtext.RuleCall ruleCall,
                                       org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                       org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Proposals for string literals
        Overrides:
        complete_SL_STRING in class AbstractBslProposalProvider
      • complete_MML_STRING

        public void complete_MML_STRING​(org.eclipse.emf.ecore.EObject model,
                                        org.eclipse.xtext.RuleCall ruleCall,
                                        org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                        org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_MML_STRING in class AbstractBslProposalProvider
      • completeAddHandlerStatement_HandlerExpression

        public void completeAddHandlerStatement_HandlerExpression​(org.eclipse.emf.ecore.EObject model,
                                                                  org.eclipse.xtext.Assignment assignment,
                                                                  org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                                  org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Checks here thats Expression is allowed in this context (AddHandler - handler expression)
        Overrides:
        completeAddHandlerStatement_HandlerExpression in class AbstractBslProposalProvider
      • completeRemoveHandlerStatement_HandlerExpression

        public void completeRemoveHandlerStatement_HandlerExpression​(org.eclipse.emf.ecore.EObject model,
                                                                     org.eclipse.xtext.Assignment assignment,
                                                                     org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                                     org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Checks here thats Expression is allowed in this context (RemoveHandler - handler expression)
        Overrides:
        completeRemoveHandlerStatement_HandlerExpression in class AbstractBslProposalProvider
      • getAllCorrectEvent

        public List<org.eclipse.xtext.util.Pair<Event,​Method>> getAllCorrectEvent​(Module module)
        Gets all correct Event for creating proposals
        Parameters:
        module - current Bsl Module
        Returns:
        collection of Events, never null
      • getTypeMethodName

        public String getTypeMethodName​(boolean isFunc,
                                        boolean isRussian)
        Gets 'Procedure' or 'Function'
        Parameters:
        isFunc - defines what will be return
        isRussian - current language
        Returns:
        'Procedure' if isFunc == false, else return 'Function'
      • getLineFormatter

        public String getLineFormatter​(int offset,
                                       org.eclipse.jface.text.IDocument document)
        Gets indentation by current context for Bsl module
        Parameters:
        offset - current offset in the module
        document - IDocument of the module
        Returns:
        computed indentation
      • getEndContentEventProposal

        public String getEndContentEventProposal​(boolean isFunc,
                                                 String lineFormatter,
                                                 boolean isRussian)
        Gets last part of content event's proposal
        Parameters:
        isFunc - true if event is funciton, false otherwise
        lineFormatter - actual line formatter string, can't be null
        isRussian - true if current script language is Russian, false otherwise
        Returns:
        last part of content event's proposal, never null
      • completeSimpleStatement_Right

        public void completeSimpleStatement_Right​(org.eclipse.emf.ecore.EObject model,
                                                  org.eclipse.xtext.Assignment assignment,
                                                  org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                  org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeSimpleStatement_Right in class AbstractBslProposalProvider
      • completeSimpleExpression_Right

        public void completeSimpleExpression_Right​(org.eclipse.emf.ecore.EObject model,
                                                   org.eclipse.xtext.Assignment assignment,
                                                   org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                   org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeSimpleExpression_Right in class AbstractBslProposalProvider
      • completeLogPrimary_Right

        public void completeLogPrimary_Right​(org.eclipse.emf.ecore.EObject model,
                                             org.eclipse.xtext.Assignment assignment,
                                             org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                             org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeLogPrimary_Right in class AbstractBslProposalProvider
      • completeLogFact_Operation

        public void completeLogFact_Operation​(org.eclipse.emf.ecore.EObject model,
                                              org.eclipse.xtext.Assignment assignment,
                                              org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                              org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeLogFact_Operation in class AbstractBslProposalProvider
      • complete_Expression

        public void complete_Expression​(org.eclipse.emf.ecore.EObject model,
                                        org.eclipse.xtext.RuleCall ruleCall,
                                        org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                        org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_Expression in class AbstractBslProposalProvider
      • completeLogFact_Operand

        public void completeLogFact_Operand​(org.eclipse.emf.ecore.EObject model,
                                            org.eclipse.xtext.Assignment assignment,
                                            org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                            org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeLogFact_Operand in class AbstractBslProposalProvider
      • completeLogTerm_Right

        public void completeLogTerm_Right​(org.eclipse.emf.ecore.EObject model,
                                          org.eclipse.xtext.Assignment assignment,
                                          org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                          org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeLogTerm_Right in class AbstractBslProposalProvider
      • completeFeatureResolving_Params

        public void completeFeatureResolving_Params​(org.eclipse.emf.ecore.EObject model,
                                                    org.eclipse.xtext.Assignment assignment,
                                                    org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                    org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeFeatureResolving_Params in class AbstractBslProposalProvider
      • completeCreator_Params

        public void completeCreator_Params​(org.eclipse.emf.ecore.EObject model,
                                           org.eclipse.xtext.Assignment assignment,
                                           org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                           org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeCreator_Params in class AbstractBslProposalProvider
      • completeConditional_Predicate

        public void completeConditional_Predicate​(org.eclipse.emf.ecore.EObject model,
                                                  org.eclipse.xtext.Assignment assignment,
                                                  org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                  org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeConditional_Predicate in class AbstractBslProposalProvider
      • completeWhileStatement_Predicate

        public void completeWhileStatement_Predicate​(org.eclipse.emf.ecore.EObject model,
                                                     org.eclipse.xtext.Assignment assignment,
                                                     org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                     org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeWhileStatement_Predicate in class AbstractBslProposalProvider
      • completeForEachStatementRest_Collection

        public void completeForEachStatementRest_Collection​(org.eclipse.emf.ecore.EObject model,
                                                            org.eclipse.xtext.Assignment assignment,
                                                            org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                            org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeForEachStatementRest_Collection in class AbstractBslProposalProvider
      • completeForToStatementRest_Bound

        public void completeForToStatementRest_Bound​(org.eclipse.emf.ecore.EObject model,
                                                     org.eclipse.xtext.Assignment assignment,
                                                     org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                     org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completeForToStatementRest_Bound in class AbstractBslProposalProvider
      • completePragma_Value

        public void completePragma_Value​(org.eclipse.emf.ecore.EObject model,
                                         org.eclipse.xtext.Assignment assignment,
                                         org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                         org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        completePragma_Value in class AbstractBslProposalProvider
      • complete_SL_COMMENT

        public void complete_SL_COMMENT​(org.eclipse.emf.ecore.EObject model,
                                        org.eclipse.xtext.RuleCall ruleCall,
                                        org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                        org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_SL_COMMENT in class AbstractBslProposalProvider
      • complete_END_IFPREPROCESSOR

        public void complete_END_IFPREPROCESSOR​(org.eclipse.emf.ecore.EObject model,
                                                org.eclipse.xtext.RuleCall ruleCall,
                                                org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                                org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_END_IFPREPROCESSOR in class AbstractBslProposalProvider
      • complete_END_REGION

        public void complete_END_REGION​(org.eclipse.emf.ecore.EObject model,
                                        org.eclipse.xtext.RuleCall ruleCall,
                                        org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                        org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_END_REGION in class AbstractBslProposalProvider
      • complete_END_DELETE

        public void complete_END_DELETE​(org.eclipse.emf.ecore.EObject model,
                                        org.eclipse.xtext.RuleCall ruleCall,
                                        org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                        org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_END_DELETE in class AbstractBslProposalProvider
      • complete_END_INSERT

        public void complete_END_INSERT​(org.eclipse.emf.ecore.EObject model,
                                        org.eclipse.xtext.RuleCall ruleCall,
                                        org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                        org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
        Overrides:
        complete_END_INSERT in class AbstractBslProposalProvider
      • isValidProposal

        protected boolean isValidProposal​(String proposal,
                                          String prefix,
                                          org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
        Overrides:
        isValidProposal in class org.eclipse.xtext.ui.editor.contentassist.AbstractCompletionProposalFactory
      • lookupCrossReference

        protected void lookupCrossReference​(org.eclipse.emf.ecore.EObject model,
                                            org.eclipse.emf.ecore.EReference reference,
                                            org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor,
                                            com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter,
                                            com.google.common.base.Function<org.eclipse.xtext.resource.IEObjectDescription,​org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
        Overrides:
        lookupCrossReference in class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
      • isAppropriateIterableTypes

        protected boolean isAppropriateIterableTypes()
        Checks that current context types of content assist contain iterable Type
        Returns:
        true if current context types of content assist contain iterable Type, false otherwise