public class DiffRequestFactoryImpl extends DiffRequestFactory
Constructor and Description |
---|
DiffRequestFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
MergeRequest |
create3WayDiffRequest(java.lang.String leftText,
java.lang.String rightText,
java.lang.String originalContent,
FileType type,
Project project,
ActionButtonPresentation okButtonPresentation,
ActionButtonPresentation cancelButtonPresentation) |
MergeRequest |
create3WayDiffRequest(java.lang.String leftText,
java.lang.String rightText,
java.lang.String originalContent,
Project project,
ActionButtonPresentation okButtonPresentation,
ActionButtonPresentation cancelButtonPresentation) |
MergeRequest |
createMergeRequest(java.lang.String leftText,
java.lang.String rightText,
java.lang.String originalContent,
VirtualFile file,
Project project,
ActionButtonPresentation okButtonPresentation,
ActionButtonPresentation cancelButtonPresentation)
Creates a request for a merge operation.
|
getInstance
public MergeRequest createMergeRequest(java.lang.String leftText, java.lang.String rightText, java.lang.String originalContent, VirtualFile file, Project project, ActionButtonPresentation okButtonPresentation, ActionButtonPresentation cancelButtonPresentation)
DiffRequestFactory
DiffManager.getDiffTool()
and then call DiffTool.show(DiffRequest)
.createMergeRequest
in class DiffRequestFactory
leftText
- First of the changed versions of the content (to be displayed in the left pane).rightText
- Second of the changed versions of the content (to be displayed in the right pane).originalContent
- The version of the content before changes.file
- The file which is being merged.project
- The project in the context of which the operation is executed.okButtonPresentation
- Parameter ignored.cancelButtonPresentation
- Parameter ignored.public MergeRequest create3WayDiffRequest(java.lang.String leftText, java.lang.String rightText, java.lang.String originalContent, FileType type, Project project, ActionButtonPresentation okButtonPresentation, ActionButtonPresentation cancelButtonPresentation)
create3WayDiffRequest
in class DiffRequestFactory
public MergeRequest create3WayDiffRequest(java.lang.String leftText, java.lang.String rightText, java.lang.String originalContent, Project project, ActionButtonPresentation okButtonPresentation, ActionButtonPresentation cancelButtonPresentation)
create3WayDiffRequest
in class DiffRequestFactory