public class DiffContentFactoryImpl extends DiffContentFactoryEx
Constructor and Description |
---|
DiffContentFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
DocumentContent |
create(Document document,
DocumentContent referent) |
DocumentContent |
create(Project project,
Document document) |
DocumentContent |
create(Project project,
Document document,
DocumentContent referent) |
DocumentContent |
create(Project project,
Document document,
FileType fileType) |
DocumentContent |
create(Project project,
Document document,
VirtualFile highlightFile) |
DocumentContent |
create(Project project,
java.lang.String text) |
DocumentContent |
create(Project project,
java.lang.String text,
DocumentContent referent) |
DocumentContent |
create(Project project,
java.lang.String text,
FilePath filePath) |
DocumentContent |
create(Project project,
java.lang.String text,
FileType type) |
DocumentContent |
create(Project project,
java.lang.String text,
FileType type,
boolean respectLineSeparators) |
DocumentContent |
create(Project project,
java.lang.String text,
VirtualFile highlightFile) |
DiffContent |
create(Project project,
VirtualFile file) |
DocumentContent |
create(java.lang.String text) |
DocumentContent |
create(java.lang.String text,
DocumentContent referent) |
DocumentContent |
create(java.lang.String text,
FileType type) |
DocumentContent |
create(java.lang.String text,
FileType type,
boolean respectLineSeparators) |
DocumentContent |
create(java.lang.String text,
VirtualFile highlightFile) |
DiffContent |
createBinary(Project project,
byte [] content,
FileType type,
java.lang.String fileName) |
DiffContent |
createClipboardContent() |
DocumentContent |
createClipboardContent(DocumentContent referent) |
DiffContent |
createClipboardContent(Project project) |
DocumentContent |
createClipboardContent(Project project,
DocumentContent referent) |
DocumentContent |
createDocument(Project project,
VirtualFile file) |
DocumentContent |
createDocumentFromBytes(Project project,
byte [] content,
FilePath filePath) |
DocumentContent |
createDocumentFromBytes(Project project,
byte [] content,
FileType fileType,
java.lang.String fileName) |
DocumentContent |
createDocumentFromBytes(Project project,
byte [] content,
VirtualFile highlightFile) |
DocumentContent |
createEditable(Project project,
java.lang.String text,
FileType fileType) |
EmptyContent |
createEmpty()
Content for the 'missing' side of addition/deletion diff request.
|
FileContent |
createFile(Project project,
VirtualFile file) |
DocumentContent |
createFragment(Project project,
DocumentContent content,
TextRange range) |
DocumentContent |
createFragment(Project project,
Document document,
TextRange range) |
DiffContent |
createFromBytes(Project project,
byte [] content,
FilePath filePath) |
DiffContent |
createFromBytes(Project project,
byte [] content,
FilePath filePath,
java.nio.charset.Charset defaultCharset) |
DiffContent |
createFromBytes(Project project,
byte [] content,
FileType fileType,
java.lang.String fileName) |
DiffContent |
createFromBytes(Project project,
byte [] content,
VirtualFile highlightFile) |
static java.nio.charset.Charset |
guessCharset(Project project,
byte [] content,
FilePath filePath) |
static java.nio.charset.Charset |
guessCharset(Project project,
byte [] content,
FileType fileType) |
static java.nio.charset.Charset |
guessCharset(Project project,
byte [] content,
VirtualFile highlightFile) |
getInstanceEx
createBinary, createFromBytes, getInstance
public EmptyContent createEmpty()
DiffContentFactory
createEmpty
in class DiffContentFactory
public DocumentContent create(java.lang.String text)
create
in class DiffContentFactory
public DocumentContent create(java.lang.String text, FileType type)
create
in class DiffContentFactory
public DocumentContent create(java.lang.String text, FileType type, boolean respectLineSeparators)
create
in class DiffContentFactory
public DocumentContent create(java.lang.String text, VirtualFile highlightFile)
create
in class DiffContentFactory
public DocumentContent create(java.lang.String text, DocumentContent referent)
create
in class DiffContentFactory
public DocumentContent create(Project project, java.lang.String text)
create
in class DiffContentFactory
public DocumentContent create(Project project, java.lang.String text, FileType type)
create
in class DiffContentFactory
public DocumentContent create(Project project, java.lang.String text, FileType type, boolean respectLineSeparators)
create
in class DiffContentFactory
public DocumentContent create(Project project, java.lang.String text, FilePath filePath)
create
in class DiffContentFactoryEx
public DocumentContent create(Project project, java.lang.String text, VirtualFile highlightFile)
create
in class DiffContentFactory
public DocumentContent create(Project project, java.lang.String text, DocumentContent referent)
create
in class DiffContentFactory
public DocumentContent createEditable(Project project, java.lang.String text, FileType fileType)
createEditable
in class DiffContentFactory
public DocumentContent create(Document document, DocumentContent referent)
create
in class DiffContentFactory
public DocumentContent create(Project project, Document document)
create
in class DiffContentFactory
public DocumentContent create(Project project, Document document, FileType fileType)
create
in class DiffContentFactory
public DocumentContent create(Project project, Document document, VirtualFile highlightFile)
create
in class DiffContentFactory
public DocumentContent create(Project project, Document document, DocumentContent referent)
create
in class DiffContentFactory
public DiffContent create(Project project, VirtualFile file)
create
in class DiffContentFactory
public DocumentContent createDocument(Project project, VirtualFile file)
createDocument
in class DiffContentFactory
public FileContent createFile(Project project, VirtualFile file)
createFile
in class DiffContentFactory
public DocumentContent createFragment(Project project, Document document, TextRange range)
createFragment
in class DiffContentFactory
public DocumentContent createFragment(Project project, DocumentContent content, TextRange range)
createFragment
in class DiffContentFactory
public DiffContent createClipboardContent()
createClipboardContent
in class DiffContentFactory
public DocumentContent createClipboardContent(DocumentContent referent)
createClipboardContent
in class DiffContentFactory
public DiffContent createClipboardContent(Project project)
createClipboardContent
in class DiffContentFactory
public DocumentContent createClipboardContent(Project project, DocumentContent referent)
createClipboardContent
in class DiffContentFactory
public DiffContent createFromBytes(Project project, byte [] content, FilePath filePath) throws java.io.IOException
createFromBytes
in class DiffContentFactoryEx
java.io.IOException
public DiffContent createFromBytes(Project project, byte [] content, FilePath filePath, java.nio.charset.Charset defaultCharset) throws java.io.IOException
createFromBytes
in class DiffContentFactoryEx
java.io.IOException
public DiffContent createFromBytes(Project project, byte [] content, FileType fileType, java.lang.String fileName) throws java.io.IOException
createFromBytes
in class DiffContentFactory
java.io.IOException
public DiffContent createFromBytes(Project project, byte [] content, VirtualFile highlightFile) throws java.io.IOException
createFromBytes
in class DiffContentFactoryEx
java.io.IOException
public DocumentContent createDocumentFromBytes(Project project, byte [] content, FileType fileType, java.lang.String fileName)
createDocumentFromBytes
in class DiffContentFactoryEx
public DocumentContent createDocumentFromBytes(Project project, byte [] content, FilePath filePath)
createDocumentFromBytes
in class DiffContentFactoryEx
public DocumentContent createDocumentFromBytes(Project project, byte [] content, VirtualFile highlightFile)
createDocumentFromBytes
in class DiffContentFactoryEx
public DiffContent createBinary(Project project, byte [] content, FileType type, java.lang.String fileName) throws java.io.IOException
createBinary
in class DiffContentFactory
java.io.IOException
public static java.nio.charset.Charset guessCharset(Project project, byte [] content, FilePath filePath)
public static java.nio.charset.Charset guessCharset(Project project, byte [] content, VirtualFile highlightFile)