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, setIsEmpty
public MergeContent(MergeVersion target, Project project)
public void applyChanges()
public Document getDocument()
DiffContent
getDocument
in class DiffContent
public Navigatable getOpenFileDescriptor(int offset)
DiffContent
getOpenFileDescriptor
in class DiffContent
offset
- in document returned by DiffContent.getDocument()
OpenFileDescriptor
to open this content in editorpublic VirtualFile getFile()
getFile
in class DiffContent
public FileType getContentType()
getContentType
in class DiffContent
public byte[] getBytes() throws java.io.IOException
getBytes
in class DiffContent
DiffContent.getFile()
returns existing not directory filejava.io.IOException
public void restoreOriginalContent()
public MergeVersion getMergeVersion()