|
|
Re: Selection event firing problem [message #111479 is a reply to message #111345] |
Thu, 06 November 2008 15:28 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Paul,
you could run you code on RCP. If it works there, it is a bug in
RAP. Otherwise the problem is probably within your code.
Cheers,
Rüdiger
Paul Kendall wrote:
> Hi,
> I have an application with two views. One view (ListView) is a list of
> objects and is a selection provider. The other view (ImageView) is used to
> display the selected object. Both views have a viewAction contributed via
> the plugin.xml.
>
> My problem is that the action contributed to the ListView works fine, but the
> action contributed to the ImageView never has it's selectionChanged method
> called.
>
> If I contribute it to the ListView instead, then the selectionChanged method
> of both actions is called.
>
> Am I doing something wrong? or is this a bug I should raise an issue for?
>
> I have attached a simplified sample application under the entrypoint name
> 'bug'.
>
> Cheers,
> Paul
|
|
|
|
Re: Selection event firing problem [message #111665 is a reply to message #111575] |
Mon, 10 November 2008 17:04 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Paul,
if you consider this a bug, feel free to file one against Platform/UI.
We would adopt the fix once it is available.
Cheers,
Rüdiger
Paul Kendall wrote:
> Rüdiger Herrmann wrote:
>
>> Paul,
>>
>> you could run you code on RCP. If it works there, it is a bug in
>> RAP. Otherwise the problem is probably within your code.
>>
>> Cheers,
>> Rüdiger
>>
> Sorry,
> Same thing in RCP.
> It seems that a viewAction targeted to a viewpart only gets it's selection
> listener called when the selection is provided by a view in the same part
> site as the target viewpart.
>
> This is not well documented in the platform documentation. Just a small
> gotcha!
>
> Cheers,
> Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03131 seconds