Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Is it possible to hide status bar items and free up the display space?(Hide status bar items)
Is it possible to hide status bar items and free up the display space? [message #1451976] Fri, 24 October 2014 15:43
Bryan H is currently offline Bryan HFriend
Messages: 1
Registered: October 2014
Junior Member
My team's application adds items to the Eclipse status bar and provides preferences to allow users to hide/show the status options. The code for this capability was created for Eclipse 3.x, and does not work as intended in Eclipse 4.x. The implementation (see below) uses some Eclipse classes from 'internal' Eclipse 3.x packages, so it is understandable why the code does not work in Eclipse 4.x.

final WorkbenchWindow extended= (WorkbenchWindow) window;
final ITrimManager trimManager= extended.getTrimManager();
if (trimManager != null) {
final IWindowTrim trim= trimManager.getTrim("id");
if (trim != null) {
trimManager.setTrimVisible(trim, false); trim.getControl().getParent().layout(true);

Is there a simple way to achieve similar behavior in Eclipse 4.x? It is easy enough to hide the targeted controls, but we have not found a good way to free up the space they occupy in the status bar. Any tips?

Previous Topic:E4 RCP and Database
Next Topic:Pure e4 rcp application and JFace Preferences
Goto Forum:

Current Time: Tue Jan 19 17:49:41 GMT 2021

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

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

Back to the top