Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider?
[EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #125102] Tue, 03 June 2008 12:13 Go to next message
Eclipse UserFriend
Hi!

Well the question is that: Does EMF Compare viewer subscribe to
workbench's SelectionProvider? We are interested in listening to
selections on, for instance, a model element that showed up a difference.
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #125110 is a reply to message #125102] Tue, 03 June 2008 13:37 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------070709050703010401090303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

V
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #135512 is a reply to message #125110] Wed, 29 April 2009 02:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi!

If I see it correctly the compare editor is still not subscribed as a SelectionProvider.
Are there any plans to do that in the near future?

Patrick


On 03-06-2008 19:37, Laurent Goubet wrote:
> Víctor,
>
> This isn't done AFAIK. You can fill in an enhancement request against
> EMF Compare, I'll try and see whether we can implement such a feature on
> our side or if it must be done a level higher (org.eclipse.compare) when
> I take a look at the API to validate what can be opened.
>
> Laurent Goubet
> Obeo
>
> Víctor Roldán Betancort wrote:
>> Hi!
>>
>> Well the question is that: Does EMF Compare viewer subscribe to
>> workbench's SelectionProvider? We are interested in listening to
>> selections on, for instance, a model element that showed up a difference.
>
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #135538 is a reply to message #135512] Wed, 29 April 2009 07:39 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040602070609020309020309
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Patrick,

I don't remember any enhancement request filled against EMF Compare and
I totally forgot about it being even raised on the newsgroup :p. The
viewers aren't registered as SelectionProvider, and I think you can
guess by my previous statement that nope, this isn't planned.

You can fill in an enhancement request ... or do it and provide us with
a patch, contributions will always be looked at way faster than request ;).

Laurent Goubet
Obeo

Patrick K
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #135551 is a reply to message #135538] Wed, 29 April 2009 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi Laurent,

It took quite a while to figure out where to place the call, but this is how it works for me.
Just add the following line in the ModelStructureMergeViewer:

private void initialize(CompareConfiguration compareConfiguration) {
...

// set selection provider
compareConfiguration.getContainer().getWorkbenchPart().getSi te().setSelectionProvider(this);
}


(I don't know to what extend exception handling is necessary here, i.e. nullpointers...)

Best regards
Patrick


On 29-04-2009 13:39, laurent Goubet wrote:
> Hi Patrick,
>
> I don't remember any enhancement request filled against EMF Compare and
> I totally forgot about it being even raised on the newsgroup :p. The
> viewers aren't registered as SelectionProvider, and I think you can
> guess by my previous statement that nope, this isn't planned.
>
> You can fill in an enhancement request ... or do it and provide us with
> a patch, contributions will always be looked at way faster than request ;).
>
> Laurent Goubet
> Obeo
>
> Patrick Könemann a écrit :
>> Hi!
>>
>> If I see it correctly the compare editor is still not subscribed as a
>> SelectionProvider.
>> Are there any plans to do that in the near future?
>>
>> Patrick
>>
>>
>> On 03-06-2008 19:37, Laurent Goubet wrote:
>>> Víctor,
>>>
>>> This isn't done AFAIK. You can fill in an enhancement request against
>>> EMF Compare, I'll try and see whether we can implement such a feature on
>>> our side or if it must be done a level higher (org.eclipse.compare) when
>>> I take a look at the API to validate what can be opened.
>>>
>>> Laurent Goubet
>>> Obeo
>>>
>>> Víctor Roldán Betancort wrote:
>>>> Hi!
>>>>
>>>> Well the question is that: Does EMF Compare viewer subscribe to
>>>> workbench's SelectionProvider? We are interested in listening to
>>>> selections on, for instance, a model element that showed up a
>>>> difference.
>>>
>>
>
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #135564 is a reply to message #135551] Wed, 29 April 2009 12:25 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------090509040202030809050204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Patrick,

Sure seems like quite a quick fix though :). I'll try and take a look at
what more is needed (in regards to your comment about exception
handling) and add that line in the viewer :).

Laurent Goubet
Obeo

Patrick K
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #135813 is a reply to message #135564] Mon, 04 May 2009 05:44 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------080801020308090809040005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Patrick,

I've tried your code and it didn't seem to cause any harmful side-effect
(exceptions, weird behavior, ...). EMF Compare structure merge viewer
is now subscribed as a SelectionProvider as it didn't include any API
change. This has been committed on CVS head and will be built with M7
tomorrow.

Thanks for the fix, as little as it was, I couldn't take time to look
into it so this is much appreciated :).

Laurent Goubet
Obeo

laurent Goubet a
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #619162 is a reply to message #125102] Tue, 03 June 2008 13:37 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------070709050703010401090303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

V
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #620885 is a reply to message #125110] Wed, 29 April 2009 02:54 Go to previous message
Eclipse UserFriend
Hi!

If I see it correctly the compare editor is still not subscribed as a SelectionProvider.
Are there any plans to do that in the near future?

Patrick


On 03-06-2008 19:37, Laurent Goubet wrote:
> Víctor,
>
> This isn't done AFAIK. You can fill in an enhancement request against
> EMF Compare, I'll try and see whether we can implement such a feature on
> our side or if it must be done a level higher (org.eclipse.compare) when
> I take a look at the API to validate what can be opened.
>
> Laurent Goubet
> Obeo
>
> Víctor Roldán Betancort wrote:
>> Hi!
>>
>> Well the question is that: Does EMF Compare viewer subscribe to
>> workbench's SelectionProvider? We are interested in listening to
>> selections on, for instance, a model element that showed up a difference.
>
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #620887 is a reply to message #135512] Wed, 29 April 2009 07:39 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040602070609020309020309
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Patrick,

I don't remember any enhancement request filled against EMF Compare and
I totally forgot about it being even raised on the newsgroup :p. The
viewers aren't registered as SelectionProvider, and I think you can
guess by my previous statement that nope, this isn't planned.

You can fill in an enhancement request ... or do it and provide us with
a patch, contributions will always be looked at way faster than request ;).

Laurent Goubet
Obeo

Patrick K
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #620888 is a reply to message #135538] Wed, 29 April 2009 10:38 Go to previous message
Eclipse UserFriend
Hi Laurent,

It took quite a while to figure out where to place the call, but this is how it works for me.
Just add the following line in the ModelStructureMergeViewer:

private void initialize(CompareConfiguration compareConfiguration) {
...

// set selection provider
compareConfiguration.getContainer().getWorkbenchPart().getSi te().setSelectionProvider(this);
}


(I don't know to what extend exception handling is necessary here, i.e. nullpointers...)

Best regards
Patrick


On 29-04-2009 13:39, laurent Goubet wrote:
> Hi Patrick,
>
> I don't remember any enhancement request filled against EMF Compare and
> I totally forgot about it being even raised on the newsgroup :p. The
> viewers aren't registered as SelectionProvider, and I think you can
> guess by my previous statement that nope, this isn't planned.
>
> You can fill in an enhancement request ... or do it and provide us with
> a patch, contributions will always be looked at way faster than request ;).
>
> Laurent Goubet
> Obeo
>
> Patrick Könemann a écrit :
>> Hi!
>>
>> If I see it correctly the compare editor is still not subscribed as a
>> SelectionProvider.
>> Are there any plans to do that in the near future?
>>
>> Patrick
>>
>>
>> On 03-06-2008 19:37, Laurent Goubet wrote:
>>> Víctor,
>>>
>>> This isn't done AFAIK. You can fill in an enhancement request against
>>> EMF Compare, I'll try and see whether we can implement such a feature on
>>> our side or if it must be done a level higher (org.eclipse.compare) when
>>> I take a look at the API to validate what can be opened.
>>>
>>> Laurent Goubet
>>> Obeo
>>>
>>> Víctor Roldán Betancort wrote:
>>>> Hi!
>>>>
>>>> Well the question is that: Does EMF Compare viewer subscribe to
>>>> workbench's SelectionProvider? We are interested in listening to
>>>> selections on, for instance, a model element that showed up a
>>>> difference.
>>>
>>
>
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #620889 is a reply to message #135551] Wed, 29 April 2009 12:25 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------090509040202030809050204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Patrick,

Sure seems like quite a quick fix though :). I'll try and take a look at
what more is needed (in regards to your comment about exception
handling) and add that line in the viewer :).

Laurent Goubet
Obeo

Patrick K
Re: [EMF Compare] Does EMF Compare viewer subscribe to workbench's SelectionProvider? [message #620908 is a reply to message #135564] Mon, 04 May 2009 05:44 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------080801020308090809040005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Patrick,

I've tried your code and it didn't seem to cause any harmful side-effect
(exceptions, weird behavior, ...). EMF Compare structure merge viewer
is now subscribed as a SelectionProvider as it didn't include any API
change. This has been committed on CVS head and will be built with M7
tomorrow.

Thanks for the fix, as little as it was, I couldn't take time to look
into it so this is much appreciated :).

Laurent Goubet
Obeo

laurent Goubet a
Previous Topic:Extending Ecore Dynamically
Next Topic:Moving nodes under one parent.
Goto Forum:
  


Current Time: Wed Jul 23 18:06:43 EDT 2025

Powered by FUDForum. Page generated in 0.05348 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top