| java.lang.Object org.netbeans.spi.diff.DiffVisualizer
All known Subclasses: org.netbeans.modules.diff.builtin.visualizer.TextDiffVisualizer, org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffVisualizer, org.netbeans.modules.diff.builtin.visualizer.GraphicalDiffVisualizer,
DiffVisualizer | abstract public class DiffVisualizer extends Object (Code) | | This class represents a diff visualizer. It's used as a presenter of a visual
representation of the source differences to the user.
The registered Diff Visualizers can be obtained via
org.openide.util.Lookup (e.g. you can get the default diff provider by
Lookup.getDefault().lookup(DiffVisualizer.class) )
author: Martin Entlicher |
createDiff | public DiffView createDiff(Difference[] diffs, StreamSource s1, StreamSource s2) throws IOException(Code) | | Creates single-window diff component that does not include any navigation controls and
is controlled programatically via the returned DiffView interface.
The StreamSource can be used to save the source content if it's modified
in the view. The view should not allow source modification if StreamSource.createWriter()
returns null .
Parameters: diffs - The list of differences. Parameters: s1 - the first source Parameters: s2 - the second source DiffView controller interface |
createView | abstract public Component createView(Difference[] diffs, String name1, String title1, Reader r1, String name2, String title2, Reader r2, String MIMEType) throws IOException(Code) | | Show the visual representation of the diff between two sources.
Parameters: diffs - The list of differences. Parameters: name1 - the name of the first source Parameters: title1 - the title of the first source Parameters: r1 - the first source Parameters: name2 - the name of the second source Parameters: title2 - the title of the second source Parameters: r2 - the second resource compared with the first one. Parameters: MIMEType - the mime type of these sources The Component representing the diff visual representationor null, when the representation is outside the IDE. throws: IOException - when the reading from input streams fails. |
|
|