Class MergeVisualizer
java.lang.Object
org.netbeans.spi.diff.MergeVisualizer
This class represents a merge visualizer. It's used as a visual conflicts
resolution tool for the process of merging of file conflicts.
The registered Merge Visualizers can be obtained via Lookup
(e.g. you can get the default merge provider by
Lookup.getDefault().lookup(MergeVisualizer.class)
)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Component
createView
(Difference[] diffs, StreamSource source1, StreamSource source2, StreamSource result) Show the visual representation of the merging process of two sources.
-
Constructor Details
-
MergeVisualizer
public MergeVisualizer()
-
-
Method Details
-
createView
public abstract Component createView(Difference[] diffs, StreamSource source1, StreamSource source2, StreamSource result) throws IOException Show the visual representation of the merging process of two sources. The result of the merging process can be saved into a Writer even before all conflicts are actually resolved.- Parameters:
diffs
- The list of conflicts.source1
- the source of the first filesource2
- the source of the second fileresult
- the information about the result source- Returns:
- The Component representing the diff visual representation or null, when the representation is outside the IDE.
- Throws:
IOException
- when the reading from input streams fails.
-