Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Menu Contributions] toolbar does not show up in view
[Menu Contributions] toolbar does not show up in view [message #332946] Sun, 16 November 2008 00:21 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hello.

I have some problems with the more or less new menu contributions framework.
I want to add something to my own views toolbar, but it does not show
up. When I add it to the main toolbar
(toolbar:org.eclipse.ui.main.toolbar) it works.

Here an little extract from my plugin.xml:

<menuContribution

locationURI="toolbar:org.pubcurator.val.views.validationPipeline ">
<toolbar
id="org.pubcurator.val.toolbars.pipelineNavigation">
<command
commandId="org.pubcurator.val.commands.previous"
icon="icons/up_arrow.gif"
mnemonic="P"
style="push">
</command>
<command
commandId="org.pubcurator.val.commands.next"
icon="icons/down_arrow.gif"
mnemonic="N"
style="push">
</command>
</toolbar>
</menuContribution>

I also use that code in the view:
getViewSite().getActionBars().getToolBarManager().add(new
Separator(IWorkbenchActionConstants.MB_ADDITIONS));

Do I have to do something else?

Best regards,
Kai
Re: [Menu Contributions] toolbar does not show up in view [message #332947 is a reply to message #332946] Sun, 16 November 2008 00:52 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Ok, the problem seems to be somewhere else.
When I swith to another perspective resp. maximize another view and then
switch back to the former view resp. restore my view by minimizing the
other maximized view, then my view toolbar shows up.
Any suggestions how to make my toolbar visible right after program start?

Best regards,
Kai

Kai Schlamp schrieb:
> Hello.
>
> I have some problems with the more or less new menu contributions
> framework.
> I want to add something to my own views toolbar, but it does not show
> up. When I add it to the main toolbar
> (toolbar:org.eclipse.ui.main.toolbar) it works.
>
> Here an little extract from my plugin.xml:
>
> <menuContribution
>
> locationURI="toolbar:org.pubcurator.val.views.validationPipeline ">
> <toolbar
> id="org.pubcurator.val.toolbars.pipelineNavigation">
> <command
> commandId="org.pubcurator.val.commands.previous"
> icon="icons/up_arrow.gif"
> mnemonic="P"
> style="push">
> </command>
> <command
> commandId="org.pubcurator.val.commands.next"
> icon="icons/down_arrow.gif"
> mnemonic="N"
> style="push">
> </command>
> </toolbar>
> </menuContribution>
>
> I also use that code in the view:
> getViewSite().getActionBars().getToolBarManager().add(new
> Separator(IWorkbenchActionConstants.MB_ADDITIONS));
>
> Do I have to do something else?
>
> Best regards,
> Kai
Re: [Menu Contributions] toolbar does not show up in view [message #332951 is a reply to message #332947] Sun, 16 November 2008 12:00 Go to previous message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Problem solved.
It had to do something with a visibleWhen clause, that I left out in my
little extract below :-(

Kai

Kai Schlamp schrieb:
> Ok, the problem seems to be somewhere else.
> When I swith to another perspective resp. maximize another view and then
> switch back to the former view resp. restore my view by minimizing the
> other maximized view, then my view toolbar shows up.
> Any suggestions how to make my toolbar visible right after program start?
>
> Best regards,
> Kai
>
> Kai Schlamp schrieb:
>> Hello.
>>
>> I have some problems with the more or less new menu contributions
>> framework.
>> I want to add something to my own views toolbar, but it does not show
>> up. When I add it to the main toolbar
>> (toolbar:org.eclipse.ui.main.toolbar) it works.
>>
>> Here an little extract from my plugin.xml:
>>
>> <menuContribution
>>
>> locationURI="toolbar:org.pubcurator.val.views.validationPipeline ">
>> <toolbar
>> id="org.pubcurator.val.toolbars.pipelineNavigation">
>> <command
>> commandId="org.pubcurator.val.commands.previous"
>> icon="icons/up_arrow.gif"
>> mnemonic="P"
>> style="push">
>> </command>
>> <command
>> commandId="org.pubcurator.val.commands.next"
>> icon="icons/down_arrow.gif"
>> mnemonic="N"
>> style="push">
>> </command>
>> </toolbar>
>> </menuContribution>
>>
>> I also use that code in the view:
>> getViewSite().getActionBars().getToolBarManager().add(new
>> Separator(IWorkbenchActionConstants.MB_ADDITIONS));
>>
>> Do I have to do something else?
>>
>> Best regards,
>> Kai
Previous Topic:batik feature missing?
Next Topic:Problems creating update site
Goto Forum:
  


Current Time: Sat Aug 17 09:19:28 GMT 2024

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

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

Back to the top