public static class MergeRequestImpl.MergeContent extends DiffContent
| Constructor and Description |
|---|
MergeContent(MergeVersion target,
Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyChanges() |
byte[] |
getBytes() |
FileType |
getContentType() |
Document |
getDocument()
Represents this content as Document
null means content has no text representation
|
VirtualFile |
getFile() |
MergeVersion |
getMergeVersion() |
Navigatable |
getOpenFileDescriptor(int offset)
Provides a way to open given text place in editor
null means given offset can't be opened in editor
|
void |
restoreOriginalContent() |
fromDocument, fromFile, getLineSeparator, isBinary, isEmpty, setIsEmptypublic MergeContent(MergeVersion target, Project project)
public void applyChanges()
public Document getDocument()
DiffContentgetDocument in class DiffContentpublic Navigatable getOpenFileDescriptor(int offset)
DiffContentgetOpenFileDescriptor in class DiffContentoffset - in document returned by DiffContent.getDocument()OpenFileDescriptor to open this content in editorpublic VirtualFile getFile()
getFile in class DiffContentpublic FileType getContentType()
getContentType in class DiffContentpublic byte[] getBytes()
throws java.io.IOException
getBytes in class DiffContentDiffContent.getFile() returns existing not directory filejava.io.IOExceptionpublic void restoreOriginalContent()
public MergeVersion getMergeVersion()