Class ProposalConflictHelper

    • Constructor Detail

      • ProposalConflictHelper

        public ProposalConflictHelper()
    • Method Detail

      • existsConflict

        public boolean existsConflict​(java.lang.String proposal,
                                      ContentAssistContext context)
        Description copied from interface: IProposalConflictHelper
        Returns false if the proposal would corrupt the previous input.
        Specified by:
        existsConflict in interface IProposalConflictHelper
        Parameters:
        proposal - a possible proposal string. Is never null.
        context - the current content assist context. Is never null.
        Returns:
        false if the proposal would corrupt the current input.
      • existsConflict

        public abstract boolean existsConflict​(java.lang.String lastCompleteText,
                                               java.lang.String proposal,
                                               ContentAssistContext context)
        Returns false if the proposal would corrupt the previous input.
        Parameters:
        lastCompleteText - the previous sibling in the input source. Is never null but may be empty. However, the implementation of existsConflict(INode, int, String, ContentAssistContext) will not pass empty strings by default but return false instead.
        proposal - a possible proposal string. Is never null.
        context - the current content assist context. Is never null.
        Returns:
        false if the proposal would corrupt the current input.
      • existsConflict

        public boolean existsConflict​(org.eclipse.xtext.nodemodel.INode lastCompleteNode,
                                      int offset,
                                      java.lang.String proposal,
                                      ContentAssistContext context)