Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Any idea why IAction.setEnabled wont work?
Any idea why IAction.setEnabled wont work? [message #438929] Sun, 04 July 2004 14:42 Go to next message
Eclipse UserFriend
Originally posted by: salgavkarNOSPAM.NOSPAMyahoo.com

Hi,
i want a very simple thing, which is, enable the workbench action if the
selection exists. Disable otherwise.

My selectionChanged Method has following code.

if (selection.isEmpty() ==false) {
action.setEnabled(true);
else
action.setEnabled(false);

ihave also tryied the samed with setChecked that doesnt seem to work
either. Any reasons why? and how can we resolve this.

Thanks.

salgavkar
Re: Any idea why IAction.setEnabled wont work? [message #438992 is a reply to message #438929] Mon, 05 July 2004 18:35 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You will get a faster response in the eclipse.platform newsgroup:

news://news.eclipse.org/eclipse.platform

"salgavkar" <salgavkarNOSPAM@NOSPAMyahoo.com> wrote in message
news:cc950q$74i$1@eclipse.org...
> Hi,
> i want a very simple thing, which is, enable the workbench action if the
> selection exists. Disable otherwise.
>
> My selectionChanged Method has following code.
>
> if (selection.isEmpty() ==false) {
> action.setEnabled(true);
> else
> action.setEnabled(false);
>
> ihave also tryied the samed with setChecked that doesnt seem to work
> either. Any reasons why? and how can we resolve this.
>
> Thanks.
>
> salgavkar
>
>
Previous Topic:which api is usefull for retriving the the project details from with the plugin?
Next Topic:table column headers in flat look?
Goto Forum:
  


Current Time: Thu Apr 25 10:01:08 GMT 2024

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

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

Back to the top