[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[platform-ui-dev] Problem in using ArmListener for menuitem's tooltip
|
- From: "Manisha Sur" <manisha.sur@xxxxxxxxx>
- Date: Thu, 24 May 2007 13:31:56 +0530
- Delivered-to: platform-ui-dev@eclipse.org
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=qNWTsBZ02bgv4a5F2EOzuwkvl+SDqJ28qEB9Qe7MSffuoYxLsl0CUv40oCGgMJoYbc7CHS4Ni6RmYsK7AIi9DsdrI1XUT62YQVEn9VQr/RXF76KJMepGYUmdhnyav+wFkxZt6P4xfphXMvcFrEjzNzLU1Bh4Rn9Xwr3VSGxCRCA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=i2LEX5BJNrzOc3mxTxXrlWxItFnSReNilM4RIufU/i4wKKzhMCcE7daAa4wVK18hUAzDaYOCKK9KQt36ibHJGR3lAMpHOye4iKQ8ZI8DFnQ9lt3U4gmrLM2eKiCxVWR0S7D8xBZ7I0/oAyclDuRvWbQWsnJ00UU4YhZhZLiRNtk=
Hi,
I have a context menu extension (org.eclipse.ui.popupMenus) 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.
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 of the context menu 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.
Please tell me where can i hook the code so that without any click on the menu item , i should see the tooltip whenever i hover on the menu items.
I hope I have explained my problem clearly.
Please help me out of this.
Thanks,
Manisha