站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

DiffVisualizer (NetBeans Diff API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.spi.diff
Class DiffVisualizer

java.lang.Object
  extended byorg.netbeans.spi.diff.DiffVisualizer

public abstract class DiffVisualizer
extends Object

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 Lookup (e.g. you can get the default diff provider by Lookup.getDefault().lookup(DiffVisualizer.class))


Constructor Summary
DiffVisualizer()
           
 
Method Summary
abstract  Component createView(Difference[] diffs, String name1, String title1, Reader r1, String name2, String title2, Reader r2, String MIMEType)
          Show the visual representation of the diff between two sources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffVisualizer

public DiffVisualizer()
Method Detail

createView

public abstract Component createView(Difference[] diffs,
                                     String name1,
                                     String title1,
                                     Reader r1,
                                     String name2,
                                     String title2,
                                     Reader r2,
                                     String MIMEType)
                              throws IOException
Show the visual representation of the diff between two sources.

Parameters:
diffs - The list of differences.
name1 - the name of the first source
title1 - the title of the first source
r1 - the first source
name2 - the name of the second source
title2 - the title of the second source
r2 - the second resource compared with the first one.
MIMEType - the mime type of these sources
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.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.