public class DocumentContentImpl extends DiffContentBase implements DocumentContent
Constructor and Description |
---|
DocumentContentImpl(Document document) |
DocumentContentImpl(Project project,
Document document,
FileType type,
VirtualFile highlightFile,
LineSeparator separator,
java.nio.charset.Charset charset,
java.lang.Boolean bom) |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
getCharset() |
FileType |
getContentType() |
Document |
getDocument()
Represents this content as Document
|
VirtualFile |
getHighlightFile()
This file could be used for better syntax highlighting.
|
LineSeparator |
getLineSeparator() |
Navigatable |
getNavigatable()
Provides a way to open related content in editor
|
Navigatable |
getNavigatable(LineCol position)
Provides a way to open given text place in editor
|
Project |
getProject() |
java.lang.Boolean |
hasBom() |
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOpenFileDescriptor
getOpenFileDescriptor, onAssigned
getUserData, putUserData
public DocumentContentImpl(Document document)
public DocumentContentImpl(Project project, Document document, FileType type, VirtualFile highlightFile, LineSeparator separator, java.nio.charset.Charset charset, java.lang.Boolean bom)
public Project getProject()
public Document getDocument()
DocumentContent
getDocument
in interface DocumentContent
public VirtualFile getHighlightFile()
DocumentContent
getHighlightFile
in interface DocumentContent
public Navigatable getNavigatable(LineCol position)
DocumentContent
getNavigatable
in interface DocumentContent
public Navigatable getNavigatable()
DiffContent
getNavigatable
in interface DiffContent
public LineSeparator getLineSeparator()
getLineSeparator
in interface DocumentContent
public java.lang.Boolean hasBom()
hasBom
in interface DocumentContent
public FileType getContentType()
getContentType
in interface DiffContent
public java.nio.charset.Charset getCharset()
getCharset
in interface DocumentContent