How to enable/disable a set of Toogle buttons [message #332887] |
Wed, 12 November 2008 15:53 |
Eclipse User |
|
|
|
Hello,
In eclipse 3.3, I have two sets of Toggle buttons declared in my
plugin.xml, the toggle buttons are visible on the toolbar. Here is the
expected behavior of my toggle buttons:
1, My first set of toggle button has two buttons, e.g., ReadAccess and
WriteAccess, the initial state is “ReadAccess” is always selected when
my plugin launched.
2, My second set of toggle buttons is enabled or disabled based on the
selection state of first set of toggle buttons. So, when ReadAccess is
selected, the second set of buttons is always disabled, and when
WriteAccess is selected, the second set of toggle buttons is always
enabled.
Now my problem is my second set of toggle buttons always enabled. I need
help to figure out how to enable/disable the second set of toogle
buttons when I select between “ReadAccess” and “WriteAccess”.
I am using eclipse 3.3, and I have the commands, defaultHandlers, and
menuContributions declared for those toggle buttons in my plugin.xml.
But I don’t know how to hook the two sets of buttons to make the second
set of buttons behaves depend on the selection of first set of button.
I appreciate any help or hint.
Thanks a lot!
Hongying
|
|
|
Powered by
FUDForum. Page generated in 0.03676 seconds