Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [CommonNavigator] Bind doubleClick to ViewItemDelegate
[CommonNavigator] Bind doubleClick to ViewItemDelegate [message #463372] Fri, 09 February 2007 05:11 Go to next message
Eclipse UserFriend
I can bind doubleClick to an open action in ActionProvider by
calling actionBars.setGlobalActionHandler(id, action) in method
fillActionBars(). Now I have implemented the open action as an
IViewActionDelegate because it must know the selection. How can
I bind double-click to the IViewActionDelegate or to the action
referring it? Thanks for your advice.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Find IObjectActionDelegates of contextmenu ([CommonNavigator] Bind doubleClick to ViewItemDelegate) [message #463678 is a reply to message #463372] Wed, 14 February 2007 10:04 Go to previous messageGo to next message
Eclipse UserFriend
Peter Maas schrieb:
> I can bind doubleClick to an open action in ActionProvider by
> calling actionBars.setGlobalActionHandler(id, action) in method
> fillActionBars(). Now I have implemented the open action as an
> IViewActionDelegate because it must know the selection [...]

The open action is now provided by ActionProvider again and
implements ISelectionChangedListener. But I have still the
problem to find the objectContribution actiondelegates of the
same context menu which is holding the open action . I tried
to grab them via extension registry but this gives me new
instances which does not work as desired. Thanks for your help.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Re: Find IObjectActionDelegates of contextmenu ([CommonNavigator] Bind doubleClick to ViewItemDelega [message #463715 is a reply to message #463678] Wed, 14 February 2007 14:43 Go to previous messageGo to next message
Eclipse UserFriend
And that won't work in 3.3 anyway ... the XML is still valid, but the
guys that hold onto the I*ActionDelegates will be completely different.

Later,
PW
Re: Find IObjectActionDelegates of contextmenu ([CommonNavigator] Bind doubleClick to ViewItemDelega [message #463733 is a reply to message #463715] Thu, 15 February 2007 02:59 Go to previous messageGo to next message
Eclipse UserFriend
Paul Webster schrieb:
> And that won't work in 3.3 anyway ... the XML is still valid, but the
> guys that hold onto the I*ActionDelegates will be completely different.

Guys? Do you mean the classes or the guys who made them? :)

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Re: Find IObjectActionDelegates of contextmenu ([CommonNavigator] Bind doubleClick to ViewItemDelega [message #463773 is a reply to message #463733] Thu, 15 February 2007 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Peter Maas wrote:
>
> Guys? Do you mean the classes or the guys who made them? :)

The guys who made them are always different :-)

I mean the class that proxies an IActionDelegate, so it can be displayed
before it is instantiated (to delay plugin loading).

Later,
PW
Re: Find IObjectActionDelegates of contextmenu [message #463938 is a reply to message #463678] Tue, 20 February 2007 12:08 Go to previous message
Eclipse UserFriend
Peter Maas schrieb:
> The open action is now provided by ActionProvider again and
> implements ISelectionChangedListener. But I have still the
> problem to find the objectContribution actiondelegates of the
> same context menu which is holding the open action . I tried
> to grab them via extension registry

This works now.

> but this gives me new
> instances which does not work as desired.

These problems were not related to the solution.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Previous Topic:Problem with communication between Views over Selection Mechanism
Next Topic:Views vs Editors
Goto Forum:
  


Current Time: Fri Mar 21 11:05:30 EDT 2025

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

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

Back to the top