org.netbeans.modules.diff/1 1.33.1 42

org.netbeans.spi.diff
Class DiffControllerProvider

java.lang.Object
  extended by org.netbeans.spi.diff.DiffControllerProvider

public abstract class DiffControllerProvider
extends Object

Provider for DiffControllerImpl implemetations. Providers should be registered in default lookup using ServiceProvider.


Constructor Summary
DiffControllerProvider()
           
 
Method Summary
abstract  DiffControllerImpl createDiffController(StreamSource base, StreamSource modified)
          Creates a Diff Controller for supplied left and right sources.
 DiffControllerImpl createEnhancedDiffController(StreamSource base, StreamSource modified)
          Creates a Diff Controller for supplied left and right sources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffControllerProvider

public DiffControllerProvider()
Method Detail

createDiffController

public abstract DiffControllerImpl createDiffController(StreamSource base,
                                                        StreamSource modified)
                                                 throws IOException
Creates a Diff Controller for supplied left and right sources.

Parameters:
base - defines content of the Base Diff pane
modified - defines content of the Modified (possibly editable) Diff pane
Returns:
DiffControllerImpl implementation of the DiffControllerImpl class
Throws:
IOException - when initialization of the controlloer fails (invalid sources, etc)

createEnhancedDiffController

public DiffControllerImpl createEnhancedDiffController(StreamSource base,
                                                       StreamSource modified)
                                                throws IOException
Creates a Diff Controller for supplied left and right sources. It is up to the implementor to override this method and return a Diff Controller which is capable of providing enhanced UI. Unless overriden, this will return the same Controller as createDiffController(org.netbeans.api.diff.StreamSource, org.netbeans.api.diff.StreamSource) would do.

Parameters:
base - defines content of the Base Diff pane
modified - defines content of the Modified (possibly editable) Diff pane
Returns:
DiffControllerImpl implementation of the DiffControllerImpl class
Throws:
IOException - when initialization of the controller fails (invalid sources, etc)
Since:
1.27

org.netbeans.modules.diff/1 1.33.1 42

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.