Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » When selectionChanged method from IWorkbenchWindowActionDelegate is called?
When selectionChanged method from IWorkbenchWindowActionDelegate is called? [message #452855] Tue, 18 July 2006 10:32 Go to next message
Javier Rodriguez is currently offline Javier RodriguezFriend
Messages: 41
Registered: July 2009
Member
Hello,

I have created a delegated action by using the extension wizard
(ActionSet) and now I would like to activate/desactivate the MenuItem
depending on the selection...
It seems that this can be done by "analizing" the selection in the
selectionChanged method but this method seems to be called only once and
not when the selection changed. Do I need to register my action to a
particular notifier?
Do you any idea on my problem?

Thanks,
Xavier
Re: When selectionChanged method from IWorkbenchWindowActionDelegate is called? [message #452881 is a reply to message #452855] Tue, 18 July 2006 13:17 Go to previous message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
In your view within the Perspective the widget holding the selection
data do - tableviewer.setSelectionProvicer(this);

Xavier wrote:
> Hello,
>
> I have created a delegated action by using the extension wizard
> (ActionSet) and now I would like to activate/desactivate the MenuItem
> depending on the selection...
> It seems that this can be done by "analizing" the selection in the
> selectionChanged method but this method seems to be called only once and
> not when the selection changed. Do I need to register my action to a
> particular notifier?
> Do you any idea on my problem?
>
> Thanks,
> Xavier
>
Previous Topic:ActionSets with submenu?
Next Topic:open source
Goto Forum:
  


Current Time: Tue Oct 15 16:27:05 GMT 2024

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

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

Back to the top