Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Filter an Action on a selected class that does not implement IActionFilter
Filter an Action on a selected class that does not implement IActionFilter [message #453030] Thu, 20 July 2006 08:23 Go to next message
Javier Rodriguez is currently offline Javier RodriguezFriend
Messages: 41
Registered: July 2009
Member
Hi,

I would like to filter an action depending on an attribute of the selected
object. This seems to be possible and easy if the object implements the
IActionFiler interface but as I donŽt control this object, I can't
implement his interface.
I think this can also be done by using Adapters but I didin't get it to
work. Can someone explain me Adapters can be used to add the IActionFilter
feature to an external object?

Thanks in advance,
Xavier
Re: Filter an Action on a selected class that does not implement IActionFilter [message #453031 is a reply to message #453030] Thu, 20 July 2006 09:36 Go to previous message
Alexander Karnstedt is currently offline Alexander KarnstedtFriend
Messages: 68
Registered: July 2009
Member
The selected object can either implement IActionFilter or adapt to
IActionFilter by implementing IAdaptable and return an IActionFilter object
from getAdapter function.

As you said you can't change the selected objects class, you won't have one
of these options.
Unfortunately in the case of IActionFilter apparently it's not possible to
adapt/extend any class by org.eclipse.core.runtime.adapters extension point.

Maybe it's worth to try the "objectState" enablement.

Or you could try to wrap the selectable objects by another class wich
implements IActionFilter and put those into the viewer.

Regards,
Alex


"Xavier" <javier.rodriguez@genaker.net> schrieb im Newsbeitrag
news:608a1abfffb00a8c6a13fc0b92d39434$1@www.eclipse.org...
> Hi,
>
> I would like to filter an action depending on an attribute of the selected
> object. This seems to be possible and easy if the object implements the
> IActionFiler interface but as I don
Previous Topic:[Databinding] combine three listviewer and comboviewer
Next Topic:How to fetch files list
Goto Forum:
  


Current Time: Sat Oct 05 13:06:14 GMT 2024

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

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

Back to the top