|
|
|
|
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   |
Eclipse User |
|
|
|
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 #135813 is a reply to message #135564] |
Mon, 04 May 2009 05:44  |
Eclipse User |
|
|
|
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 #620885 is a reply to message #125110] |
Wed, 29 April 2009 02:54  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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 #620908 is a reply to message #135564] |
Mon, 04 May 2009 05:44  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05348 seconds