当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
MergeVisualizer (NetBeans Diff API) - NetBeans API Javadoc 5.0.0
org.netbeans.spi.diff
Class MergeVisualizer
java.lang.Object
org.netbeans.spi.diff.MergeVisualizer
- public abstract class MergeVisualizer
- extends Object
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)
)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergeVisualizer
public MergeVisualizer()
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.