Interface IDocumentChange

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CREATE_UNDO
      Flags indicating that applying a change to a document is supposed to create a corresponding undo change.
      static int NONE
      Flag indicating that neither CREATE_UNDO nor UPDATE_REGIONS is set.
      static int UPDATE_REGIONS
      Flag indicating that edit regions in the change's edit tree will be updated to reflect their positions in the changed document.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ISnapshot getBase()
      Returns the snapshot on which this change's edit tree is based, or null if the snapshot is unknown.
      org.eclipse.text.edits.TextEdit getEdit()
      Returns the edit tree associated with this change.
      int getStyle()
      Returns the style flags associated with this change.
    • Field Detail

      • UPDATE_REGIONS

        static final int UPDATE_REGIONS
        Flag indicating that edit regions in the change's edit tree will be updated to reflect their positions in the changed document. If not specified, the edit regions will be arbitrary; it is even not guaranteed that the edit tree is still well formed after applying the change.
        See Also:
        getStyle(), Constant Field Values
    • Method Detail

      • getEdit

        org.eclipse.text.edits.TextEdit getEdit()
        Returns the edit tree associated with this change.
        Returns:
        the change's edit tree (never null)
      • getBase

        ISnapshot getBase()
        Returns the snapshot on which this change's edit tree is based, or null if the snapshot is unknown.
        Returns:
        the snapshot on which the change is based, or null if unknown
      • getStyle

        int getStyle()
        Returns the style flags associated with this change. May return NONE or any combination of CREATE_UNDO and UPDATE_REGIONS flags.
        Returns:
        the change's style flags