This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
So that we can satisfy demands in bug 103664, we need to add new methods to the Diff API/SPI. Currently the diff visualizer only displays the graphical diff window, i would like to add also a textual representation of the diff to the visualizer so that for small changes made to a file you don't have to scroll in relatively huge graphical diff and see the change immediately as few lines long text. Why do we have to change the API/SPI? 103664 could be fixed even without the API/SPI change, it would mean that the diff visualizer would always display both views (graphical and textual). But i think this change in UI would disappoint many clients currently using the diff support (e.g. Refactoring, i think it has no need to display the textual diff and wants to display the diff in the current form). So i think the best is to vreate a new factory method in org.netbeans.api.diff.DiffController (createEnhanced) and tunnel the request to the SPI in org.netbeans.spi.diff.DiffControllerProvider.createEnhancedDiffController
Created attachment 94513 [details] API/SPI changes and implementation
If there are no objections, i will integrate into cdev tomorrow.
fix: http://hg.netbeans.org/cdev/rev/d31ef4b9e538
Integrated into 'main-golden', will be available in build *201003081350* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d31ef4b9e538 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #181209 - Extend API/SPI: ability to create enhanced multi-view diff