Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Enabling and Diabling of the Menu Items
Enabling and Diabling of the Menu Items [message #336576] Wed, 24 June 2009 10:49 Go to next message
Sushant Dusad is currently offline Sushant DusadFriend
Messages: 25
Registered: July 2009
Junior Member
Hi All,
I have a menu whic contains a toggle menu item and other are push menu
items.
I want to enable and disable the menu items depending upon the toggle
menu item.
I have to do it through my code.
I am writing an actin delegate which implements
IWorkbenchWindowActionDelegate.
I also went through this post but m not able ot understand what really
needs to be done.
http://dev.eclipse.org/newslists/news.eclipse.platform/msg06 120.html
Would any one please elaborate on this.
Any ponters to this will be helpful.
Re: Enabling and Diabling of the Menu Items [message #336611 is a reply to message #336576] Thu, 25 June 2009 07:44 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Sushant Dusad wrote:
> Hi All,
> I have a menu whic contains a toggle menu item and other are push menu
> items.
> I want to enable and disable the menu items depending upon the toggle
> menu item.
> I have to do it through my code.
> I am writing an actin delegate which implements
> IWorkbenchWindowActionDelegate.
> I also went through this post but m not able ot understand what really
> needs to be done.
> http://dev.eclipse.org/newslists/news.eclipse.platform/msg06 120.html
> Would any one please elaborate on this.
> Any ponters to this will be helpful.
>

The toggle style menu item can be contributed thru Commands Framework.
It basically uses a predefined state to check/uncheck the menu. You can
use the same state and enable the other menu items thru the enabledWhen
of the respective handlers.

- Prakash

---
http://blog.eclipse-tips.com
Re: Enabling and Diabling of the Menu Items [message #336650 is a reply to message #336611] Fri, 26 June 2009 05:41 Go to previous messageGo to next message
Sushant Dusad is currently offline Sushant DusadFriend
Messages: 25
Registered: July 2009
Junior Member
Hi Prakash,
Thanks for your help.

Thanks and Regards
Sushant S. Dusad
Re: Enabling and Diabling of the Menu Items [message #336944 is a reply to message #336650] Wed, 15 July 2009 10:29 Go to previous message
Sushant Dusad is currently offline Sushant DusadFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,
I am still not able to get this working.
I want to use actions and i am setting the enables for property to "+"
I have a another action which is a toggle on selecting the other action
should get enabled and on deselcting it should get disabled.
I am attaching the source with this post. can anyone please help me out
with this.

Thanks and Regards
Sushant Dusad

"Sushant Dusad" <sushantdusad@gmail.com> wrote in message
news:ad23223141c4599e3a98bed11a0a5d56$1@www.eclipse.org...
> Hi Prakash,
> Thanks for your help.
>
> Thanks and Regards
> Sushant S. Dusad
>


Previous Topic:Other views
Next Topic:Where to report eclipse corner articles web page's bug?
Goto Forum:
  


Current Time: Thu Apr 25 19:51:27 GMT 2024

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

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

Back to the top