public interface IDocumentChange
IDocument
.DocumentChangeOperation
Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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.
|
static final int NONE
CREATE_UNDO
nor
UPDATE_REGIONS
is set.getStyle()
,
Constant Field Valuesstatic final int CREATE_UNDO
null
is returned from DocumentChangeOperation.execute()
method.getStyle()
,
Constant Field Valuesstatic final int UPDATE_REGIONS
getStyle()
,
Constant Field Valuesorg.eclipse.text.edits.TextEdit getEdit()
null
)ISnapshot getBase()
null
if the snapshot is unknown.null
if unknownint getStyle()
NONE
or any combination of CREATE_UNDO
and
UPDATE_REGIONS
flags.Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0