DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Disable the action in PopupMenus extension point?
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Feb 2008
Question Disable the action in PopupMenus extension point? - 07-23-2008, 01:24 AM

Hi All,
I have made one popupMenu to be displayed in one view through "org.eclipse.ui.popupMenus" extension point. In that I have added one action which will be displayed as a menu item in the context/popup menu generated in that view.
Now what i want is..to disable one specific action dynamically based on some condition. I am able to access the menu through menu manager class and also got the menu item but when i m using setEnabled(false) method on it, It is not reflecting any change.. i mean it is not getting disabled..

If there is some alternate way to disable the action of popupMenu, dynamically... than..plzz reply...

Thanks & Regards,
Jay.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable an action on some other action sandeepp Eclipse 0 08-28-2008 07:29 AM
Eclipse Xulrunner plugin extension efreeti Eclipse 0 08-25-2008 10:12 AM
Can't get the Extension Registry in Eclipse 3.2.1 on WAS7 colin renouf Eclipse 0 08-17-2008 07:47 PM
Disable right-click mtrudgia Eclipse 0 03-31-2008 01:19 AM
Comment Extension block in a GIF, Help! coderdragon Java 0 03-03-2008 12:06 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com