@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface DiffAndMergeTools
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
openDiffFilesApplication(java.net.URL leftURL,
java.net.URL rightURL)
Open the diff files tool with initial left and right URLs to compare.
|
java.lang.Object |
openDiffFilesApplication(java.net.URL leftURL,
java.net.URL rightURL,
java.net.URL ancestorURL)
Open the diff files tool with initial left and right URLs to compare.
|
java.util.List<MergedFileState> |
openMergeApplication(java.io.File baseDir,
java.io.File personalModifiedFilesDir,
java.io.File externalModifiedFilesDir,
java.util.Map<java.lang.String,java.lang.String> mergeOptions)
Displays a modal dialog that allows you to see and accept/reject the differences
between the provided files.
|
java.lang.Object openDiffFilesApplication(java.net.URL leftURL, java.net.URL rightURL)
leftURL
- The left-side URL to diff. Can be null
.rightURL
- The right-side URL to diff. Can be null
.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
java.lang.Object openDiffFilesApplication(java.net.URL leftURL, java.net.URL rightURL, java.net.URL ancestorURL)
null
the comparison will be performed in two-way mode.
The comparison will begin automatically and the content types for the URLs will be auto-detected.
This works only when the API is used in the standalone version of Oxygen.leftURL
- The left-side URL to diff. Can be null
.rightURL
- The right-side URL to diff. Can be null
.ancestorURL
- The ancestor (base) URL to diff. Can be null
.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
java.util.List<MergedFileState> openMergeApplication(java.io.File baseDir, java.io.File personalModifiedFilesDir, java.io.File externalModifiedFilesDir, java.util.Map<java.lang.String,java.lang.String> mergeOptions) throws MergeFilesException
flowers.dita
,
but the file is missing from the externalModifiedFilesDir folder.
This means that the dialog will present a delete file modification. If you accepted this modification, the flowers.dita
file from the personalModifiedFilesDir directory will be removed. When closing the dialog by pressing "OK",
this method will return a list containing a single MergedFileState
object, with MergedFileState.MergeStatus.DELETED
state,
pointing to the flowers.dita
file from personalModifiedFilesDir.baseDir
- The directory containing initial, unaltered files.personalModifiedFilesDir
- The directory containing the files modified by you.
These files are modified during the merging.externalModifiedFilesDir
- The directory containing the files modified by others.mergeOptions
- The options used in the merge operation. The keys that can be used in this map
are found in MergeFilesOptionsConstants
.null
when the dialog is canceled.MergeFilesException
- Exception thrown in case the merge operation fails.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.