Menu Image [message #254115] |
Thu, 17 April 2008 11:32 |
Eclipse User |
|
|
|
Originally posted by: andymorton.btinternet.com
Hi.
I am dynamically creating a context/popup menu whenever I startup.
It creates a menu item, with a dynamic amount of sub menus.
All is well with the menu, but I want to be able to put an image on the
menu, and not the sub menus.
Currently the code is like this:
final MenuManager menuDynamic = new
MenuManage(PrefConstants.TEMPLATE_MENU_NAME,null);
menuDynamic.add(new Action(PrefConstants.TEMPLATE_MENU_FAKE){});
menuDynamic.setRemoveAllWhenShown(true);
<--- I want to set the image on the menuDynamic object around here....
while (items)
{
....//add children
}
Is this possible to do?
Regards,
Andrew
|
|
|
|
Re: Menu Image [message #254131 is a reply to message #254127] |
Thu, 17 April 2008 13:27 |
Eclipse User |
|
|
|
Originally posted by: andymorton.btinternet.com
Wayne,
Apologies for the confusion.
My context menu contains a parent, for example, 'Mortys Menu'.
I have added several actions to this as children, for example 'Do This'
and 'Do That'.
I want to place an icon beside the text 'Mortys Menu' in the context menu.
Again apologies for the confusion.
Regards,
Andrew
|
|
|
Re: Menu Image [message #254243 is a reply to message #254131] |
Fri, 18 April 2008 14:53 |
Wayne Beaton Messages: 554 Registered: December 2017 |
Senior Member |
|
|
I poked around a bit and, sadly, my answer at this point is
"dunno" (though, after a quick review of some of the menus in the
Eclipse IDE, it seems possible).
I recommend moving this question to the eclipse.platform newsgroup;
somebody there may have an answer.
HTH,
Wayne
On Thu, 2008-04-17 at 13:27 +0000, Andrew Morton wrote:
> Wayne,
>
> Apologies for the confusion.
> My context menu contains a parent, for example, 'Mortys Menu'.
> I have added several actions to this as children, for example 'Do This'
> and 'Do That'.
>
> I want to place an icon beside the text 'Mortys Menu' in the context menu.
>
> Again apologies for the confusion.
>
> Regards,
> Andrew
>
|
|
|
Powered by
FUDForum. Page generated in 0.08530 seconds