DiffContent
instead@Deprecated
public abstract class DiffContent
extends java.lang.Object
DiffRequest
Constructor and Description |
---|
DiffContent()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DocumentContent |
fromDocument(Project project,
Document document)
Deprecated.
Creates DiffContent associated with given document
|
static FileContent |
fromFile(Project project,
VirtualFile file)
Deprecated.
Creates DiffContent associated with given file.
|
abstract byte[] |
getBytes()
Deprecated.
|
abstract FileType |
getContentType()
Deprecated.
|
abstract Document |
getDocument()
Deprecated.
Represents this content as Document
null means content has no text representation
|
abstract VirtualFile |
getFile()
Deprecated.
|
LineSeparator |
getLineSeparator()
Deprecated.
|
abstract Navigatable |
getOpenFileDescriptor(int offset)
Deprecated.
Provides a way to open given text place in editor
null means given offset can't be opened in editor
|
boolean |
isBinary()
Deprecated.
Means this content represents binary data.
|
boolean |
isEmpty()
Deprecated.
|
void |
setIsEmpty(boolean isEmpty)
Deprecated.
|
public boolean isBinary()
public void setIsEmpty(boolean isEmpty)
public boolean isEmpty()
public abstract Document getDocument()
public abstract Navigatable getOpenFileDescriptor(int offset)
offset
- in document returned by getDocument()
OpenFileDescriptor
to open this content in editorpublic abstract VirtualFile getFile()
public abstract FileType getContentType()
public abstract byte[] getBytes() throws java.io.IOException
getFile()
returns existing not directory filejava.io.IOException
public static FileContent fromFile(Project project, VirtualFile file)
public static DocumentContent fromDocument(Project project, Document document)
public LineSeparator getLineSeparator()