Problem in using ArmListener for menuitem's tooltip [message #211745] |
Wed, 23 May 2007 07:08 |
Eclipse User |
|
|
|
Originally posted by: manisha.sur.gmail.com
Hi,
I have a context menu declared in the plugin.xml with objectContribution
for : org.eclipse.ui.IEditorPart so that it appears in all editors.
I need to create a tooltip (org....swt.widgets.ToolTip) for the menuitems
in the context menu. I want to add a ArmListener to the menuitems so that
whenever i hover on the menuitems i can see the tooltip.
I don't know how can i acheive the following::
1)Get access to the menuitems in the context menu
2)Adding the ArmListener to the menuitems
3)where to hook the code
currently I have placed the code in the run method of the
ObjectActionDelegate class of the actions (menu items) where i can :
1)access the menuitems
2)add ArmListeners
3)add tooltip
But the main problem is that this all happens when i click on the action (
i.e. run method of the ObjectActionDelegate is called.
I want the functionality whenever i hover on the menu items.
I hope I have explained my problem clearly.
Please help me out of this.
Thanks,
Manisha
|
|
|
Powered by
FUDForum. Page generated in 0.06061 seconds