org.eclipse.ecf.sync.doc
Interface IDocumentChange

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IModelChange
All Known Implementing Classes:
DocumentChangeMessage

public interface IDocumentChange
extends IModelChange

Local document change. Instances of this class represent local changes to a replicated document.

Since:
2.1

Method Summary
 int getLengthOfReplacedText()
          Get length of text that was replaced.
 int getOffset()
          Get offset in document where change has or will occur.
 java.lang.String getText()
          Get the new text.
 
Methods inherited from interface org.eclipse.ecf.sync.IModelChange
applyToModel
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getOffset

int getOffset()
Get offset in document where change has or will occur.

Returns:
int the offset

getLengthOfReplacedText

int getLengthOfReplacedText()
Get length of text that was replaced.

Returns:
length of replaced text

getText

java.lang.String getText()
Get the new text.

Returns:
String text. Will not return null, but may return empty string.