Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Strange toolbar
Strange toolbar [message #9066] Sun, 24 May 2009 14:47 Go to next message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member
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 14:45 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

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 14:49 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
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 17:53 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

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: Tue Apr 23 10:51:54 GMT 2024

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

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

Back to the top