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, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpenFileDescriptorgetOpenFileDescriptor, onAssignedgetUserData, putUserDatapublic 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()
DocumentContentgetDocument in interface DocumentContentpublic VirtualFile getHighlightFile()
DocumentContentgetHighlightFile in interface DocumentContentpublic Navigatable getNavigatable(LineCol position)
DocumentContentgetNavigatable in interface DocumentContentpublic Navigatable getNavigatable()
DiffContentgetNavigatable in interface DiffContentpublic LineSeparator getLineSeparator()
getLineSeparator in interface DocumentContentpublic java.lang.Boolean hasBom()
hasBom in interface DocumentContentpublic FileType getContentType()
getContentType in interface DiffContentpublic java.nio.charset.Charset getCharset()
getCharset in interface DocumentContent