[Menu Contributions] toolbar does not show up in view [message #332946] |
Sat, 15 November 2008 19:21  |
Eclipse User |
|
|
|
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 07:00  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06784 seconds