public static class MergeVersion.MergeDocumentVersion extends java.lang.Object implements MergeVersion
MergeVersion.MergeDocumentVersion
Modifier and Type | Field and Description |
---|---|
protected Document |
myDocument |
Constructor and Description |
---|
MergeDocumentVersion(Document document,
java.lang.String originalText) |
Modifier and Type | Method and Description |
---|---|
void |
applyText(java.lang.String text,
Project project) |
Document |
createWorkingDocument(Project project) |
protected void |
doApplyText(java.lang.String text,
Project project) |
protected void |
doRestoreOriginalContent(Project project) |
byte[] |
getBytes() |
FileType |
getContentType() |
VirtualFile |
getFile() |
java.lang.String |
getOriginalText() |
void |
restoreOriginalContent(Project project) |
protected final Document myDocument
public MergeDocumentVersion(Document document, java.lang.String originalText)
public java.lang.String getOriginalText()
public Document createWorkingDocument(Project project)
createWorkingDocument
in interface MergeVersion
public void applyText(java.lang.String text, Project project)
applyText
in interface MergeVersion
protected void doApplyText(java.lang.String text, Project project)
public void restoreOriginalContent(Project project)
restoreOriginalContent
in interface MergeVersion
protected void doRestoreOriginalContent(Project project)
public VirtualFile getFile()
getFile
in interface MergeVersion
public byte[] getBytes() throws java.io.IOException
getBytes
in interface MergeVersion
java.io.IOException
public FileType getContentType()
getContentType
in interface MergeVersion