Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to enable/disable a set of Toogle buttons
How to enable/disable a set of Toogle buttons [message #332887] Wed, 12 November 2008 15:53
Hongying is currently offline HongyingFriend
Messages: 11
Registered: July 2009
Junior Member
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
Previous Topic:How to list features of local update site?
Next Topic:Expanding on the BuildManager
Goto Forum:
  


Current Time: Thu Apr 25 12:05:00 GMT 2024

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

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

Back to the top