DZone ForumsDZone Forums  

Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
LinkBack Thread Tools Display Modes

Topic: Disable the action in PopupMenus extension point?
Old 07-23-2008, 12:24 AM   #1 (permalink)
Member
 
Join Date: Feb 2008
Posts: 22
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.
jayjamba is offline   Reply /w Quote -


Thread Tools
Display Modes



All times are GMT -5. The time now is 08:40 PM.