Bug 40727

Summary: Allow navigation workflow control from other view
Product: [Eclipse Project] Platform Reporter: Jean-Michel Lemieux <jean-michel_lemieux>
Component: CompareAssignee: Andre Weinand <andre_weinand>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2 CC: oyvind.harboe
Version: 3.0   
Target Milestone: 3.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jean-Michel Lemieux CLA 2003-07-24 14:56:41 EDT
3.0 M2
I've come accross another issue with our refactoring of the Synchronize view
away from the DiffTreeViewer. We can no longer support the next/previous
workflows where you could navigate differences between different panes in the
compare editor input.
The importance of this is outlined in the following Bug 20106.

We would need a way of selecting the next change and then knowing when the
start/end has been reached to that we can step forwards/backwards in the
Synchronize View. I've experimented with CompareNavigator but it wasn't really
designed for that.
Comment 1 Jean-Michel Lemieux CLA 2003-08-21 09:17:04 EDT
*** Bug 41778 has been marked as a duplicate of this bug. ***
Comment 2 Andre Weinand CLA 2003-08-25 10:52:17 EDT
Released new (experimental) API to Compare HEAD (first appearance in N20030826).

- added new interface org.eclipse.compare.ICompareNavigator with single method 
   boolean selectChange(boolean next). Returns true if at end (beginning).
- for now you can get this interface for an CompareEditorInput via
   getAdapter(ICompareNavigator).
- for an example please see org.eclipse.compare.NavigationAction

Let me know if you need more/different functionality