Class BslContentProposalPriorities

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.contentassist.IContentProposalPriorities

    public class BslContentProposalPriorities
    extends org.eclipse.xtext.ui.editor.contentassist.ContentProposalPriorities
    Sets priority for proposals for content assist BSL language
    See Also:
    ContentProposalPriorities
    • Field Detail

      • ADD_PRIORITY_DERIVED_PROPERTY

        public static final int ADD_PRIORITY_DERIVED_PROPERTY
        See Also:
        Constant Field Values
      • ADD_PRIORITY_INTERSECTION_TYPES

        public static final int ADD_PRIORITY_INTERSECTION_TYPES
        See Also:
        Constant Field Values
      • templateProposalPriority

        protected int templateProposalPriority
      • declareElementPriority

        protected int declareElementPriority
    • Constructor Detail

      • BslContentProposalPriorities

        public BslContentProposalPriorities()
    • Method Detail

      • adjustTemplatePriority

        public void adjustTemplatePriority​(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
                                           String prefix)
        Set priority value templates in BSL
        Parameters:
        proposal - - processing proposal @see ICompletionProposal, cannot be null
        prefix - - putting a line before the call to the user content-assist, cannot be null
      • adjustDeclareElementPriority

        public void adjustDeclareElementPriority​(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
                                                 String prefix,
                                                 int additionalPriority)
        Set priority value declare element (variables and methods) in BSL
        Parameters:
        proposal - - processing proposal @see ICompletionProposal, cannot be null
        prefix - - putting a line before the call to the user content-assist, cannot be null
        additionalPriority - - additional priority
      • adjustCrossReferencePriority

        public void adjustCrossReferencePriority​(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
                                                 String prefix,
                                                 int additionalPriority)
        Set priority value cross reference element (variables and methods) in BSL
        Parameters:
        proposal - - processing proposal @see ICompletionProposal, cannot be null
        prefix - - putting a line before the call to the user content-assist, cannot be null
        additionalPriority - - additional priority
      • adjustKeywordPriority

        public void adjustKeywordPriority​(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
                                          String prefix,
                                          int additionalPriority)
        Set priority value keyword element in BSL
        Parameters:
        proposal - - processing proposal @see ICompletionProposal, cannot be null
        prefix - - putting a line before the call to the user content-assist, cannot be null
        additionalPriority - - additional priority
      • adjustPriority

        protected void adjustPriority​(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
                                      String prefix,
                                      int priority)
        Overrides:
        adjustPriority in class org.eclipse.xtext.ui.editor.contentassist.ContentProposalPriorities