PropertyTester on list of objects [message #535779] |
Tue, 25 May 2010 15:18 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
I would like to implement a property tester based on the elements in the
structured selection. The type of the elements is one of my classes. Is
that possible? What do I have to specify as type in the extension point?
Thanks for any information,
Luzi
|
|
|
Re: PropertyTester on list of objects [message #535984 is a reply to message #535779] |
Wed, 26 May 2010 14:35 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
Luzi Anderegg schrieb:
> I would like to implement a property tester based on the elements in the
> structured selection. The type of the elements is one of my classes. Is
> that possible? What do I have to specify as type in the extension point?
>
> Thanks for any information,
> Luzi
or should i implement an own sourceprovider for this case?
Luzi
|
|
|
|
|
Re: PropertyTester on list of objects [message #535995 is a reply to message #535986] |
Wed, 26 May 2010 15:26 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
Paul Webster schrieb:
> Luzi Anderegg wrote:
>> I would like to implement a property tester based on the elements in
>> the structured selection. The type of the elements is one of my
>> classes. Is that possible? What do I have to specify as type in the
>> extension point?
>
> You can either test each element within an IStructuredSelection using
> the iterate element, in which case your property tester would probably
> be applicable to the Type of objects you expect to find in the
> selection. Or you can test the entire selection yourself, in which case
> the property tester would probably have the target type
> IStructuredSelection.
>
> PW
>
>
Thanks for the information. As the test needs simultaneous access to the
whole selection (it has to compare the elements within the selection), I
will go for the second option with the IStructuredSelection as target type.
Luzi
|
|
|
Powered by
FUDForum. Page generated in 0.04516 seconds