Class ChangeTextConsolidator
Consolidates a list of edit operations based on a subsequent text change operation.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class ChangeTextConsolidator : AbstractOperationConsolidator, IEditOperationVisitor
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.
Constructors
ChangeTextConsolidator(IChangeTextOperation)
construct from a subsequent text change operation
Declaration
public ChangeTextConsolidator(IChangeTextOperation subsequentOperation)
Parameters
Type | Name | Description |
---|---|---|
IChangeTextOperation | subsequentOperation |
Methods
VisitChangeGhostStatusOperation(IChangeGhostStatusOperation)
consolidate with a preceding ghost status change
Declaration
public override void VisitChangeGhostStatusOperation(IChangeGhostStatusOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeGhostStatusOperation | operation |
Overrides
VisitChangeTextOperation(IChangeTextOperation)
consolidate with a preceding text change
Declaration
public override void VisitChangeTextOperation(IChangeTextOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeTextOperation | operation |
Overrides
VisitDeleteNodeOperation(IDeleteNodeOperation)
consolidate with preceding delete
Declaration
public override void VisitDeleteNodeOperation(IDeleteNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IDeleteNodeOperation | operation |
Overrides
VisitInsertNodeOperation(IInsertNodeOperation)
consolidate with a preceding insert
Declaration
public override void VisitInsertNodeOperation(IInsertNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IInsertNodeOperation | operation |