|
Re: dynamic context menu [message #249179 is a reply to message #249138] |
Fri, 04 June 2004 01:56 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: paull.NOSPAMcodetelligence.com
Something like:
MenuManager menuInsertCharacters = new MenuManager("Insert", "idInsert");
parentMenu.add(menuInsertCharacters);
menuInsertCharacters.add(actionInsertXMLComment);
Paul
www.codetelligence.com
"NG" <neilg@avaya.com> wrote in message news:c9o4o3$ebl$1@eclipse.org...
> We have a set of dynamic actions that are created in code when a new
> selection is chosen from our view. The actions are displayed in the
> context menu when you right click the selected item.
>
> Here is a typical entry:
>
> ContextMenuAction createNewMap = new ContextMenuAction(object);
>
> createNewMap.setText("create map");
>
createNewMap.setImageDescriptor(WorkbenchImages.getImageDesc riptor(IWorkbenc
hGraphicConstants.IMG_CTOOL_HOME_NAV));
>
createNewMap.setHoverImageDescriptor(WorkbenchImages.getImag eDescriptor(IWor
kbenchGraphicConstants.IMG_CTOOL_HOME_NAV_HOVER));
>
> actionList.add(createNewMap);
>
> I want to create a context menu that has a sub menu so it might look like
> this:
>
> create->map
> object
> list
>
> How do you go about displaying the text to have a nested menu on the right
> context menu?
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04235 seconds