Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359421 - API to open emf compare editor with initialization of selection
Summary: API to open emf compare editor with initialization of selection
Status: CLOSED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: 1.3   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 09:24 EDT by Cedric Notot CLA
Modified: 2011-09-30 05:20 EDT (History)
1 user (show)

See Also:


Attachments
Open editor with selection API (12.93 KB, patch)
2011-09-29 09:25 EDT, Cedric Notot CLA
laurent.goubet: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.