Skip to main content



      Home
Home » Eclipse Projects » JFace » Strange toolbar
Strange toolbar [message #9066] Sun, 24 May 2009 10:47 Go to next message
Eclipse UserFriend
Hi,

In my ApplicatioActionBarAdvisor, I have created CommandContributionItems,
and added them as menus. This works fine. However, when I try to add any
of these (even workbench ones like save or print) to the toolbar, they
appear in the toolbar ok, but get removed from the menu bar!

Any ideas on this? Do I need two contribution items instances for the same
command? (one for menu bar - one for tool bar)?

Any help appreciated, thanks!
Re: Strange toolbar [message #9086 is a reply to message #9066] Mon, 25 May 2009 10:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rob,

I am curious to see your advisor code. Can you post it?

--
Best Regards,

Wim Jongman
http://www.remainsoftware.com
http://www.industrial-tsi.com
"Rob " <robbie.kennedy@yahoo.ie> wrote in message
news:5c9a7961ca468462b9f38f631947ebf3$1@www.eclipse.org...
> Hi,
>
> In my ApplicatioActionBarAdvisor, I have created CommandContributionItems,
> and added them as menus. This works fine. However, when I try to add any
> of these (even workbench ones like save or print) to the toolbar, they
> appear in the toolbar ok, but get removed from the menu bar!
>
> Any ideas on this? Do I need two contribution items instances for the same
> command? (one for menu bar - one for tool bar)?
>
> Any help appreciated, thanks!
>
Re: Strange toolbar [message #9106 is a reply to message #9066] Mon, 25 May 2009 10:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rob,

CommandContributionItem comes from org.eclipse.ui.workbench (i.e. outside of
JFace). Can you ask your question in eclipse.platform or
eclipse.platform.rcp?

Thanks
Boris

"Rob " <robbie.kennedy@yahoo.ie> wrote in message
news:5c9a7961ca468462b9f38f631947ebf3$1@www.eclipse.org...
> Hi,
>
> In my ApplicatioActionBarAdvisor, I have created CommandContributionItems,
> and added them as menus. This works fine. However, when I try to add any
> of these (even workbench ones like save or print) to the toolbar, they
> appear in the toolbar ok, but get removed from the menu bar!
>
> Any ideas on this? Do I need two contribution items instances for the same
> command? (one for menu bar - one for tool bar)?
>
> Any help appreciated, thanks!
>
Re: Strange toolbar [message #9125 is a reply to message #9066] Mon, 25 May 2009 13:53 Go to previous message
Eclipse UserFriend
Hi,

you could add your command declaratively, I know that this works well.
Example: http://www.vogella.de/articles/EclipseCommands/article.html

Best regards, Lars
Rob wrote:
> Hi,
>
> In my ApplicatioActionBarAdvisor, I have created
> CommandContributionItems, and added them as menus. This works fine.
> However, when I try to add any of these (even workbench ones like save
> or print) to the toolbar, they appear in the toolbar ok, but get removed
> from the menu bar!
>
> Any ideas on this? Do I need two contribution items instances for the
> same command? (one for menu bar - one for tool bar)?
>
> Any help appreciated, thanks!
>
Previous Topic:IStructuredSelection
Next Topic:[content assist] Problem with ContentAssist at TextCellEditor
Goto Forum:
  


Current Time: Sun Jul 13 20:01:08 EDT 2025

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

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

Back to the top