public class DocumentChange extends java.lang.Object implements IDocumentChange
IDocumentChange.CREATE_UNDO, NONE, UPDATE_REGIONS| Constructor and Description |
|---|
DocumentChange(org.eclipse.text.edits.TextEdit edit)
Creates a new document change with the given text edit and
CREATE_UNDO|UPDATE_REGIONS style. |
| 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.
|
void |
setBase(ISnapshot base)
Sets the snapshot on which this change is based.
|
void |
setStyle(int style)
Sets the style flags for this change.
|
public DocumentChange(org.eclipse.text.edits.TextEdit edit)
CREATE_UNDO|UPDATE_REGIONS style.edit - a text edit - must not be nullpublic void setBase(ISnapshot base)
base - the snapshot on which the change is based,
or null if unknownpublic void setStyle(int style)
IDocumentChange.NONE
or any combination of IDocumentChange.CREATE_UNDO and IDocumentChange.UPDATE_REGIONS.style - style flagspublic org.eclipse.text.edits.TextEdit getEdit()
IDocumentChangegetEdit in interface IDocumentChangenull)public ISnapshot getBase()
IDocumentChangenull if the snapshot is unknown.getBase in interface IDocumentChangenull if unknownpublic int getStyle()
IDocumentChangeIDocumentChange.NONE or any combination of IDocumentChange.CREATE_UNDO and
IDocumentChange.UPDATE_REGIONS flags.getStyle in interface IDocumentChangeCopyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0