|
TextDocument.Conflict object
Prototype for TextDocument.Conflict objects. SyntaxYou cannot create conflict objects. To access them inside a document you can do this:
if (doc instanceof TextDocument)
Parametersnone. Property Ofnone. Implemented InECMerge 2.1 DescriptionTextDocument.Conflict objects give you information about
which lines of the contents are covered by this conflict, which
solution would be given, which differences are contained by
this conflict.
Properties
Methods
differences
ExamplesExample 1.Logs the text currently used as a solution for the first conflict of a merge: log (current_frame.coordinator.document.conflicts[0].result_text); See Also
Method differencesSyntaxfunction diffs ( couple )
Parametersside. Side Couple string. Couple from which the differences ranges are requested. Method OfTextDocument.Conflict object. Implemented InECMerge 2.1 DescriptionReturns the range of indices in the matching
TextDocument.differences( ) array of the differences which
are encompassed by this conflict.
ExamplesExample 1.
See Also
Method linesSyntaxfunction lines ( side )
Parametersside. Side string. Side for which the range of lines is requested Method OfTextDocument.Conflict object. Implemented InECMerge 2.1 DescriptionReturns the range of lines which are covered by the conflict, in a given side. ExamplesExample 1.Navigates to the start of first conflict in the current view: var doc = current_frame.coordinator.document;
See Also
Method get_solution_textSyntaxfunction get_solution_text ( solution_kind )
Parameterssolution_kind. Text Conflict State string. The pre-defined solution kind for which the text is queried Method OfTextDocument.Conflict object. Implemented InECMerge 2.1 DescriptionReturns the text that would be used to solve this conflict if the given solution_kind was chosen by the user in the UI. It allows the programmer to compute the merge of texts when no UI is available. ExamplesExample 1.
See Also
|
|||||||||