Class SubjectControlContextInformationValidator

    • Constructor Detail

      • SubjectControlContextInformationValidator

        public SubjectControlContextInformationValidator​(IContentAssistProcessor processor)
        Deprecated.
        Creates a new context information validator which is ready to be installed on a particular context information.
        Parameters:
        processor - the processor to be used for validation
    • Method Detail

      • install

        public void install​(IContextInformation contextInformation,
                            ITextViewer viewer,
                            int offset)
        Deprecated.
        Description copied from interface: IContextInformationValidator
        Installs this validator for the given context information.
        Specified by:
        install in interface IContextInformationValidator
        Parameters:
        contextInformation - the context information which this validator should check
        viewer - the text viewer on which the information is presented
        offset - the document offset for which the information has been computed
      • isContextInformationValid

        public boolean isContextInformationValid​(int offset)
        Deprecated.
        Description copied from interface: IContextInformationValidator
        Returns whether the information this validator is installed on is still valid at the given document position.
        Specified by:
        isContextInformationValid in interface IContextInformationValidator
        Parameters:
        offset - the current offset within the document
        Returns:
        true if the information also valid at the given document position