Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] [EMF Compare] How to connect emf compare controls with "Properties" view ?


Please use the EMF newsgroup ( ) for questions related to EMF Compare.

This seem however to be something that EMF Compare should do on his side rather than have third-party plugins implement. The missing selection providing should be done (or so I think after a quick glance at the code) from ModelContentMergeTabFolder#createTreePart(). Could you raise an enhancement request against EMF Compare ( ) to track this?

Laurent Goubet

On 17/03/2011 02:58, 周昊 wrote:

Excuse me, I just wanna know how to show the model's properties in "Properties" view, which is provided by eclipse workbench, when I select an item in the tree view.
For example, at first, by using   CompareUI.openCompareEditor(new ModelCompareEditorInput(...)), we will create a new editor in the workbench, in which the comparison results are shown. Then, when I select an element in the tree, I wanna show its properties in "Properties" view.
There is already an adapter factory to produce IPropertyDescriptors for  the model been selected, all I wanna do is to inform the workbench page that I have selected an element, something like  getSite().setSelectionProvider(the comparing tree). I just do not know where to add this clause, or is there any better solution for this problem?

Best regards!

_______________________________________________ emf-dev mailing list emf-dev@xxxxxxxxxxx

fn:Laurent Goubet
org:<a href="";>Obeo</a>

Back to the top