public class DiffRequestFactoryImpl extends DiffRequestFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIFF_TITLE_RENAME_SEPARATOR |
Constructor and Description |
---|
DiffRequestFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
MergeRequest |
createBinaryMergeRequest(Project project,
VirtualFile output,
java.util.List<byte[]> byteContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles,
Consumer<? super MergeResult> applyCallback) |
MergeRequest |
createBinaryMergeRequestFromFiles(Project project,
VirtualFile output,
java.util.List<? extends VirtualFile> fileContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles,
Consumer<? super MergeResult> applyCallback) |
ContentDiffRequest |
createClipboardVsValue(java.lang.String value) |
ContentDiffRequest |
createFromFiles(Project project,
VirtualFile file1,
VirtualFile file2) |
ContentDiffRequest |
createFromFiles(Project project,
VirtualFile leftFile,
VirtualFile baseFile,
VirtualFile rightFile) |
MergeRequest |
createMergeRequest(Project project,
FileType fileType,
Document outputDocument,
java.util.List<java.lang.String> textContents,
java.lang.String title,
java.util.List<java.lang.String> titles,
Consumer<? super MergeResult> applyCallback) |
MergeRequest |
createMergeRequest(Project project,
VirtualFile output,
java.util.List<byte[]> byteContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles) |
MergeRequest |
createMergeRequest(Project project,
VirtualFile output,
java.util.List<byte[]> byteContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles,
Consumer<? super MergeResult> applyCallback) |
MergeRequest |
createMergeRequestFromFiles(Project project,
VirtualFile output,
java.util.List<? extends VirtualFile> fileContents,
Consumer<? super MergeResult> applyCallback) |
MergeRequest |
createMergeRequestFromFiles(Project project,
VirtualFile output,
java.util.List<? extends VirtualFile> fileContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles,
Consumer<? super MergeResult> applyCallback) |
TextMergeRequest |
createTextMergeRequest(Project project,
VirtualFile output,
java.util.List<byte[]> byteContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles,
Consumer<? super MergeResult> applyCallback) |
TextMergeRequest |
createTextMergeRequestFromFiles(Project project,
VirtualFile output,
java.util.List<? extends VirtualFile> fileContents,
java.lang.String title,
java.util.List<java.lang.String> contentTitles,
Consumer<? super MergeResult> applyCallback) |
static java.lang.String |
getContentTitle(FilePath path) |
java.lang.String |
getContentTitle(VirtualFile file) |
static java.lang.String |
getTitle(FilePath path1,
FilePath path2,
java.lang.String separator) |
java.lang.String |
getTitle(VirtualFile file) |
java.lang.String |
getTitle(VirtualFile file1,
VirtualFile file2) |
getInstance
public static final java.lang.String DIFF_TITLE_RENAME_SEPARATOR
public ContentDiffRequest createFromFiles(Project project, VirtualFile file1, VirtualFile file2)
createFromFiles
in class DiffRequestFactory
public ContentDiffRequest createFromFiles(Project project, VirtualFile leftFile, VirtualFile baseFile, VirtualFile rightFile)
createFromFiles
in class DiffRequestFactory
public ContentDiffRequest createClipboardVsValue(java.lang.String value)
createClipboardVsValue
in class DiffRequestFactory
public java.lang.String getContentTitle(VirtualFile file)
getContentTitle
in class DiffRequestFactory
public java.lang.String getTitle(VirtualFile file1, VirtualFile file2)
getTitle
in class DiffRequestFactory
public java.lang.String getTitle(VirtualFile file)
getTitle
in class DiffRequestFactory
public static java.lang.String getContentTitle(FilePath path)
public static java.lang.String getTitle(FilePath path1, FilePath path2, java.lang.String separator)
public MergeRequest createMergeRequest(Project project, FileType fileType, Document outputDocument, java.util.List<java.lang.String> textContents, java.lang.String title, java.util.List<java.lang.String> titles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createMergeRequest
in class DiffRequestFactory
InvalidDiffRequestException
public MergeRequest createMergeRequest(Project project, VirtualFile output, java.util.List<byte[]> byteContents, java.lang.String title, java.util.List<java.lang.String> contentTitles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createMergeRequest
in class DiffRequestFactory
InvalidDiffRequestException
public MergeRequest createMergeRequest(Project project, VirtualFile output, java.util.List<byte[]> byteContents, java.lang.String title, java.util.List<java.lang.String> contentTitles) throws InvalidDiffRequestException
createMergeRequest
in class DiffRequestFactory
InvalidDiffRequestException
public TextMergeRequest createTextMergeRequest(Project project, VirtualFile output, java.util.List<byte[]> byteContents, java.lang.String title, java.util.List<java.lang.String> contentTitles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createTextMergeRequest
in class DiffRequestFactory
InvalidDiffRequestException
public MergeRequest createBinaryMergeRequest(Project project, VirtualFile output, java.util.List<byte[]> byteContents, java.lang.String title, java.util.List<java.lang.String> contentTitles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createBinaryMergeRequest
in class DiffRequestFactory
InvalidDiffRequestException
public MergeRequest createMergeRequestFromFiles(Project project, VirtualFile output, java.util.List<? extends VirtualFile> fileContents, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createMergeRequestFromFiles
in class DiffRequestFactory
InvalidDiffRequestException
public MergeRequest createMergeRequestFromFiles(Project project, VirtualFile output, java.util.List<? extends VirtualFile> fileContents, java.lang.String title, java.util.List<java.lang.String> contentTitles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createMergeRequestFromFiles
in class DiffRequestFactory
InvalidDiffRequestException
public TextMergeRequest createTextMergeRequestFromFiles(Project project, VirtualFile output, java.util.List<? extends VirtualFile> fileContents, java.lang.String title, java.util.List<java.lang.String> contentTitles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
createTextMergeRequestFromFiles
in class DiffRequestFactory
InvalidDiffRequestException
public MergeRequest createBinaryMergeRequestFromFiles(Project project, VirtualFile output, java.util.List<? extends VirtualFile> fileContents, java.lang.String title, java.util.List<java.lang.String> contentTitles, Consumer<? super MergeResult> applyCallback) throws InvalidDiffRequestException
InvalidDiffRequestException