Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Eclipse 4 RCP Part toolbar location(Eclipse 4 toolbar location)
Eclipse 4 RCP Part toolbar location [message #1779433] Sun, 07 January 2018 14:35 Go to next message
Eclipse UserFriend
Hi guys,

In the process of converting an eclipse 3 application to a pure e4 one. In the old eclipse application we would programmatically add items to the views' toolbar by doing:

IActionBars actionBars = getViewSite().getActionBars();
IToolBarManager toolBar = actionBars.getToolBarManager();
toolBar.add(action);

This would add toolbar items next to the minimise and maximise buttons.

However if I use the application model and give a part a toolbar and a handled toolitem, it does not get displayed next to the minimise and maximise buttons. Instead it creates a strip across the top of the view, below the minimise and maximise buttons.

How do I go about placing the the tool bar items next to the minimise and maximise buttons? Within the eclipse IDE they are still doing this on many views, such as the code outline view and package explorer view.

Many Thanks
Re: Eclipse 4 RCP Part toolbar location [message #1780276 is a reply to message #1779433] Fri, 19 January 2018 09:50 Go to previous message
Eclipse UserFriend
This is normal when it does not have enough space to display the toolbar. If you expand the part and give the toolbar more space, it should move to the top row.

If this does not help, can you post a screenshot?

Cheers, Wernke
Previous Topic:Product Definition Dialog's hover scrolling
Next Topic:E3 to E4 Migration - e4view with toolbar
Goto Forum:
  


Current Time: Sun Jul 13 22:02:59 EDT 2025

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

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

Back to the top