How enable and disable buttons using event in SWT. [message #1006654] |
Fri, 01 February 2013 10:39 |
|
I'm creating one swt project . In that i have 1 dialog with 4 buttons.
What i need:
With one Button which is enable if i click then other will enable and this will disable.
And again from other button if i click all other should disable and 1st one should enable.
How I'm doing
Simple way to do this is create one function which invert the visibility. and call that method from widget Selection event.
What i want
Is there is any other way (Standard) to do this like using fireevent.
Thanks
|
|
|
Re: How enable and disable buttons using event in SWT. [message #1006844 is a reply to message #1006654] |
Sat, 02 February 2013 19:23 |
|
I think what you are doing is ideal for handling of button enable/disable within the same dialog, as far as I know there is no option exists for enabling/disabling multiple buttons in a single shot within eclipse framework.
Only if you are handling buttons across multiple dialogs then you may have to go in for firing events. And still, you will have to handle enabling/disabling of each button separately.
I hope this helps.
Regards,
Vasanthi
|
|
|
Powered by
FUDForum. Page generated in 0.02308 seconds