Is it possible to hide status bar items and free up the display space? [message #1451976] |
Fri, 24 October 2014 15:43 |
Bryan H 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?
Thanks!
Bryan
|
|
|
Powered by
FUDForum. Page generated in 0.03197 seconds