Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » One Handler for multiple MenutItem
One Handler for multiple MenutItem [message #568609] Thu, 11 February 2010 07:29
Eclipse UserFriend
How do I get the control of a menu item that was clicked ?

<children xsi:type="application:DirectToolItem" id="Btn1"
URI="platform:/plugin/test/handler.ClickHandler" label="Test_1"
iconURI="platform:/plugin/test/icons/Test_1.png"/>
<children xsi:type="application:DirectToolItem" id="Btn2"
URI="platform:/plugin/test/handler.ClickHandler" label="Test_2"
iconURI="platform:/plugin/test/icons/Test_2.png"/>

The objective is to have 1 ClickHandler and then take action based on the
button clicked.
I would prefer to use "id" to differentiate the button clicked.

Any pointers would help.

Thanks,
Best Regards,
Walter G. Prabhakar.
Previous Topic:Initializing Java Tooling never completes
Next Topic:One Handler for multiple MenutItem
Goto Forum:
  


Current Time: Sun Jul 06 15:36:54 EDT 2025

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

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

Back to the top