Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » locationURI for the console view toolbar
locationURI for the console view toolbar [message #553840] Thu, 19 August 2010 07:20 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
Hi,

I have an IOConsole for which I want to have a toolbar button in the
console view. I tried using the menuContribution extension point, but I
can't seem to get the locationURI right:

> <menuContribution
> locationURI="toolbar:org.eclipse.ui.console.ConsoleView?after=additions ">
> <toolbar
> id="com.iar.ide.debugger.kernel.ui.console.toolbar"
> label="...">
> <command
> ...
> </command>
> </toolbar>
>
> </menuContribution>

Can I use the commands API with the console view toolbar? The other
toolbar buttons seems to be contributed using actions (according to
Plugin Spy); does that prevent me using the commands API?

--
Jesper Eskilson
Developer
IAR Systems
Re: locationURI for the console view toolbar [message #553904 is a reply to message #553840] Thu, 19 August 2010 11:42 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You would contribute your commands, not a complete toolbar, in your
menuContribution.

You still might see some oddity, since the Console View is a PageBookView.

Let us know.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: locationURI for the console view toolbar [message #553920 is a reply to message #553904] Thu, 19 August 2010 12:19 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
On 08/19/2010 01:44 PM, Paul Webster wrote:
> You would contribute your commands, not a complete toolbar, in your
> menuContribution.

Aha. Thanks, that was the problem.

--
Jesper Eskilson
Developer
IAR Systems
Re: locationURI for the console view toolbar [message #553921 is a reply to message #553920] Thu, 19 August 2010 12:25 Go to previous message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
On 08/19/2010 02:19 PM, Jesper Eskilson wrote:
> On 08/19/2010 01:44 PM, Paul Webster wrote:
>> You would contribute your commands, not a complete toolbar, in your
>> menuContribution.
>
> Aha. Thanks, that was the problem.

BTW, how can I make the command only visible in the toolbar when my
specific console is visible?

--
Jesper Eskilson
Developer
IAR Systems
Previous Topic:Using env_var with Eclipse set variables
Next Topic:Q re NewPluginProjectFromTemplateWizard
Goto Forum:
  


Current Time: Thu Mar 28 20:40:44 GMT 2024

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

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

Back to the top