Class RewriteSessionEditProcessor


  • public final class RewriteSessionEditProcessor
    extends TextEditProcessor
    A text edit processor that brackets the application of edits into a document rewrite session.
    Since:
    3.3
    • Constructor Detail

      • RewriteSessionEditProcessor

        public RewriteSessionEditProcessor​(IDocument document,
                                           TextEdit root,
                                           int style)
        Constructs a new edit processor for the given document.
        Parameters:
        document - the document to manipulate
        root - the root of the text edit tree describing the modifications. By passing a text edit a a text edit processor the ownership of the edit is transfered to the text edit processors. Clients must not modify the edit (e.g adding new children) any longer.
        style - TextEdit.NONE, TextEdit.CREATE_UNDO or TextEdit.UPDATE_REGIONS)
    • Method Detail

      • isLargeEdit

        public static boolean isLargeEdit​(TextEdit edit)
        Returns true if the passed edit is considered large, false otherwise.
        Parameters:
        edit - the edit to check
        Returns:
        true if edit is considered large, false otherwise
        Since:
        3.3