Class PageProposal

  • All Implemented Interfaces:
    Comparable<PageProposal>, org.eclipse.jface.text.contentassist.ICompletionProposal, org.eclipse.jface.text.contentassist.ICompletionProposalExtension2, org.eclipse.jface.text.contentassist.ICompletionProposalExtension3, org.eclipse.jface.text.contentassist.ICompletionProposalExtension5

    public class PageProposal
    extends Object
    implements org.eclipse.jface.text.contentassist.ICompletionProposal, org.eclipse.jface.text.contentassist.ICompletionProposalExtension2, org.eclipse.jface.text.contentassist.ICompletionProposalExtension3, org.eclipse.jface.text.contentassist.ICompletionProposalExtension5, Comparable<PageProposal>
    Default proposal for preference page usage. Proposes variable in pattern editor
    • Constructor Detail

      • PageProposal

        public PageProposal​(org.eclipse.jface.text.ITextViewer viewer,
                            IVariablePresentation presentation,
                            org.eclipse.jface.text.IRegion region,
                            boolean isRu)
        Creates new instance of this with given parameters
        Parameters:
        viewer - The viewer that called for content assist operation, cannot be null
        presentation - The presentation of the variable to create proposal from, cannot be null
        region - The region to insert this variable, cannot be null
    • Method Detail

      • apply

        public void apply​(org.eclipse.jface.text.IDocument document)
        Specified by:
        apply in interface org.eclipse.jface.text.contentassist.ICompletionProposal
      • getSelection

        public org.eclipse.swt.graphics.Point getSelection​(org.eclipse.jface.text.IDocument document)
        Specified by:
        getSelection in interface org.eclipse.jface.text.contentassist.ICompletionProposal
      • getAdditionalProposalInfo

        public String getAdditionalProposalInfo()
        Specified by:
        getAdditionalProposalInfo in interface org.eclipse.jface.text.contentassist.ICompletionProposal
      • getDisplayString

        public String getDisplayString()
        Specified by:
        getDisplayString in interface org.eclipse.jface.text.contentassist.ICompletionProposal
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Specified by:
        getImage in interface org.eclipse.jface.text.contentassist.ICompletionProposal
      • getContextInformation

        public org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
        Specified by:
        getContextInformation in interface org.eclipse.jface.text.contentassist.ICompletionProposal
      • apply

        public void apply​(org.eclipse.jface.text.ITextViewer viewer,
                          char trigger,
                          int stateMask,
                          int offset)
        Specified by:
        apply in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
      • selected

        public void selected​(org.eclipse.jface.text.ITextViewer viewer,
                             boolean smartToggle)
        Specified by:
        selected in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
      • unselected

        public void unselected​(org.eclipse.jface.text.ITextViewer viewer)
        Specified by:
        unselected in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
      • validate

        public boolean validate​(org.eclipse.jface.text.IDocument document,
                                int offset,
                                org.eclipse.jface.text.DocumentEvent event)
        Specified by:
        validate in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
      • getInformationControlCreator

        public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator()
        Specified by:
        getInformationControlCreator in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension3
      • getPrefixCompletionText

        public CharSequence getPrefixCompletionText​(org.eclipse.jface.text.IDocument document,
                                                    int completionOffset)
        Specified by:
        getPrefixCompletionText in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension3
      • getPrefixCompletionStart

        public int getPrefixCompletionStart​(org.eclipse.jface.text.IDocument document,
                                            int completionOffset)
        Specified by:
        getPrefixCompletionStart in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension3
      • getAdditionalProposalInfo

        public Object getAdditionalProposalInfo​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        getAdditionalProposalInfo in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension5