Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359421

Summary: API to open emf compare editor with initialization of selection
Product: [Modeling] EMFCompare Reporter: Cedric Notot <cedric.notot>
Component: CoreAssignee: EMF Compare <emf.compare-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: laurent.goubet
Version: 1.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Open editor with selection API laurent.goubet: iplog+

Description Cedric Notot CLA 2011-09-29 09:24:05 EDT
I have created a service class (CompareServices) to provide two methods to open an emf compare editor and to select the differences related to the given model object identifiers:

+ void openEditor(final CompareEditorInput input, List<String> objectIds).

-> Open editor from a CompareEditorInput (may be a SaveablesCompareEditorInput, GitCompareEditorInput...) and a set of model object identifiers to select the related differences during editor opening.

+ void initSelection(List<String> objectIds, IEditorPart editor)

-> Realize the selection of the differences related to the given set of model object identifiers and an existing CompareEditor.

You can find the patch in attachments.
Comment 1 Cedric Notot CLA 2011-09-29 09:25:28 EDT
Created attachment 204290 [details]
Open editor with selection API
Comment 2 Laurent Goubet CLA 2011-09-30 05:20:12 EDT
Thanks, this enhancement has now been pushed on master.