How to disable actions in an context menu? [message #451481] |
Wed, 21 June 2006 11:27 |
Eclipse User |
|
|
|
Originally posted by: dordepozega.amdosoft.com
Hi!
I would like to know how to disable lets say an
erase action on an selection where this action shouldnt
be possible. In short how to turn an action in an context
menu to gray.
Regards
|
|
|
|
Re: How to disable actions in an context menu? [message #451485 is a reply to message #451481] |
Wed, 21 June 2006 12:59 |
Eclipse User |
|
|
|
Originally posted by: dordepozega.amdosoft.com
I solved it .... the Action class has a method called setEnabled(boolean) ,
set as false and voila it disabled.
I tryed to solve this some time ago and really readed the hole API for
Action and didnt seen this method.
Thank you for the fast answer.
Regards.
"Dorde Pozega" <dordepozega@amdosoft.com> wrote in message
news:e7bafk$lqq$1@utils.eclipse.org...
> Hi!
>
> I would like to know how to disable lets say an
> erase action on an selection where this action shouldnt
> be possible. In short how to turn an action in an context
> menu to gray.
>
> Regards
>
|
|
|
Powered by
FUDForum. Page generated in 0.03478 seconds