public abstract class MergeModelBase<S extends MergeModelBase.State> extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
static class |
MergeModelBase.State |
Disposable.Parent
Constructor and Description |
---|
MergeModelBase(Project project,
Document document) |
Modifier and Type | Method and Description |
---|---|
void |
appendChange(int index,
java.util.List<? extends java.lang.CharSequence> newContent) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
enterBulkChangeUpdateBlock() |
boolean |
executeMergeCommand(java.lang.String commandName,
java.lang.String commandGroupId,
UndoConfirmationPolicy confirmationPolicy,
boolean underBulkUpdate,
TIntArrayList affectedChanges,
java.lang.Runnable task) |
void |
exitBulkChangeUpdateBlock() |
int |
getChangesCount() |
int |
getLineEnd(int index) |
int |
getLineStart(int index) |
void |
invalidateHighlighters(int index) |
boolean |
isDisposed() |
boolean |
isInsideCommand() |
protected S |
processDocumentChange(int index,
int oldLine1,
int oldLine2,
int shift) |
protected abstract void |
reinstallHighlighters(int index) |
void |
replaceChange(int index,
java.util.List<? extends java.lang.CharSequence> newContent) |
protected void |
restoreChangeState(S state) |
void |
setChanges(java.util.List<? extends LineRange> changes) |
protected abstract S |
storeChangeState(int index) |
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isDisposed()
public int getChangesCount()
public int getLineStart(int index)
public int getLineEnd(int index)
public void setChanges(java.util.List<? extends LineRange> changes)
public boolean isInsideCommand()
public void invalidateHighlighters(int index)
public void enterBulkChangeUpdateBlock()
public void exitBulkChangeUpdateBlock()
protected abstract void reinstallHighlighters(int index)
protected abstract S storeChangeState(int index)
protected void restoreChangeState(S state)
protected S processDocumentChange(int index, int oldLine1, int oldLine2, int shift)
public boolean executeMergeCommand(java.lang.String commandName, java.lang.String commandGroupId, UndoConfirmationPolicy confirmationPolicy, boolean underBulkUpdate, TIntArrayList affectedChanges, java.lang.Runnable task)
public void replaceChange(int index, java.util.List<? extends java.lang.CharSequence> newContent)
public void appendChange(int index, java.util.List<? extends java.lang.CharSequence> newContent)