Class DiffControllerProvider

java.lang.Object
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 Details

    • DiffControllerProvider

      public DiffControllerProvider()
  • Method Details

    • 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