Skip to main content



      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 04:23 Go to next message
Eclipse UserFriend
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 05:36 Go to previous message
Eclipse UserFriend
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: Sun Aug 31 10:47:11 EDT 2025

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

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

Back to the top