Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Positioning of buttons using locationURI for the ConsoleView(How to find out what is currently contributed to the toolbar?)
Positioning of buttons using locationURI for the ConsoleView [message #794762] Thu, 09 February 2012 17:17 Go to next message
Juan Felipe Caro Galvis is currently offline Juan Felipe Caro GalvisFriend
Messages: 4
Registered: February 2012
Junior Member
Hi,

I am contributing with a command to the ConsoleView toolbar. Currently the buttons are always shown at the far right side. I would like to have control on where they are shown, and in particular I want to put them on the left side of the other buttons. I have been playing with the Query part of the locationURI without success.

Normally I should be able to position the buttons "before" or "after" a known IContributionItem. But I have no clue how to find out which items are currently contributed to the ConsoleView.
Using something like:
locationURI="toolbar:org.eclipse.ui.console.ConsoleView?before=additions"
wont work. The button is no longer shown.

My extension looks like this:

<extension point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.console.ConsoleView?after=additions">
         <command
               commandId="ConsoleTests.addConsole"
               icon="icons/alt_window_16.gif"
               label="Add filter"
               style="push"
               tooltip="Add a console filter">
         </command>
      </menuContribution>
   </extension>


Thank you very much!
Juan Felipe Caro

[Updated on: Thu, 09 February 2012 17:20]

Report message to a moderator

Re: Positioning of buttons using locationURI for the ConsoleView [message #808448 is a reply to message #794762] Mon, 27 February 2012 19:57 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Try and use Plugin menu/toolbar spy to find out the IDs of some of the buttons. Use ALT+SHIFT+F2 and then click on a button.

PW


Previous Topic:How to save "Insert Spaces for Tabs" preferences
Next Topic:Filter/remove extensions contributed by other plugins?
Goto Forum:
  


Current Time: Thu Apr 25 00:53:21 GMT 2024

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

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

Back to the top