Class DiffControllerProvider
java.lang.Object
org.netbeans.spi.diff.DiffControllerProvider
Provider for DiffControllerImpl implemetations. Providers should be registered in default lookup using
ServiceProvider
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DiffControllerImpl
createDiffController
(StreamSource base, StreamSource modified) Creates a Diff Controller for supplied left and right sources.createEnhancedDiffController
(StreamSource base, StreamSource modified) Creates a Diff Controller for supplied left and right sources.
-
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 panemodified
- 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 ascreateDiffController(org.netbeans.api.diff.StreamSource, org.netbeans.api.diff.StreamSource)
would do.- Parameters:
base
- defines content of the Base Diff panemodified
- 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
-