Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Positioning of Items in Toolbar/Coolbar
Positioning of Items in Toolbar/Coolbar [message #332916] Thu, 13 November 2008 20:17 Go to next message
Marcelo Alcantara is currently offline Marcelo AlcantaraFriend
Messages: 48
Registered: July 2009
Member
Hi,

I need to add an Action to the end of a toolbar (rightmost position).

Somebody knows here how to control the positioning of elements on the
toolbar/coolbar?

Can I add one action to the leftmost position and another to the rightmost
positon?

Thanks in advance.

Marcelo
Re: Positioning of Items in Toolbar/Coolbar [message #332930 is a reply to message #332916] Fri, 14 November 2008 14:36 Go to previous messageGo to next message
Marcelo Alcantara is currently offline Marcelo AlcantaraFriend
Messages: 48
Registered: July 2009
Member
No hints on this issue?

Thanks again.

Marcelo

"Marcelo Alcantara" <marcelo.alcantara@cshg.com.br> escreveu na mensagem
news:gfi20d$flo$1@build.eclipse.org...
> Hi,
>
> I need to add an Action to the end of a toolbar (rightmost position).
>
> Somebody knows here how to control the positioning of elements on the
> toolbar/coolbar?
>
> Can I add one action to the leftmost position and another to the rightmost
> positon?
>
> Thanks in advance.
>
> Marcelo
>
Re: Positioning of Items in Toolbar/Coolbar [message #333050 is a reply to message #332916] Fri, 21 November 2008 19:57 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you need to have something in their already, a well known ID, and then
use that.

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Positioning of Items in Toolbar/Coolbar [message #333064 is a reply to message #333050] Mon, 24 November 2008 12:33 Go to previous messageGo to next message
Marcelo Alcantara is currently offline Marcelo AlcantaraFriend
Messages: 48
Registered: July 2009
Member
Hi Paul,

Thank you very much for your reply.

It is possible, somehow, to add an action to the leftmost location and
another one on the rightmost location as an example?

Thanks again.

Marcelo

"Paul Webster" <pwebster@ca.ibm.com> escreveu na mensagem
news:gg74a4$q81$1@build.eclipse.org...
> you need to have something in their already, a well known ID, and then use
> that.
>
> 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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Re: Positioning of Items in Toolbar/Coolbar [message #333070 is a reply to message #333064] Mon, 24 November 2008 13:40 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Marcelo Alcantara wrote:
> Hi Paul,
>
> Thank you very much for your reply.
>
> It is possible, somehow, to add an action to the leftmost location and
> another one on the rightmost location as an example?
>
> Thanks again.
>
> Marcelo

Yes, if you have a well known ID already at the leftmost position and
use after=<well known ID>

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Positioning of Items in Toolbar/Coolbar [message #333401 is a reply to message #333070] Tue, 09 December 2008 16:30 Go to previous messageGo to next message
Marcel Hoetter is currently offline Marcel HoetterFriend
Messages: 28
Registered: July 2009
Junior Member
Paul Webster schrieb:
> Yes, if you have a well known ID already at the leftmost position and
> use after=<well known ID>

Aha. So how does one get an ID at that (or some other) position of the toolbar or the statusbar? Can
this also be done e.g. with trims to place a contribution at the top, the bottom
or the center of a trim?

MH
Re: Positioning of Items in Toolbar/Coolbar [message #333404 is a reply to message #333401] Tue, 09 December 2008 18:13 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Marcel Hoetter wrote:
> Aha. So how does one get an ID at that (or some other) position of the
> toolbar or the statusbar? Can this also be done e.g. with trims to place
> a contribution at the top, the bottom
> or the center of a trim?

As it depends on the set of features loaded, you can't really know ...
if you are an RCP app you can control what goes into the trim/status and
so place things exactly. If you are simply a plugin, you have to set a
breakpoint and find out which ID is at the end.

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:IApplication class loader problem
Next Topic:Managing fonts
Goto Forum:
  


Current Time: Fri Jul 05 03:28:08 GMT 2024

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

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

Back to the top