|Re: View's manipulation [message #894446 is a reply to message #894230]
||Mon, 09 July 2012 05:31
| Alexander Haag
Registered: July 2009
you can always show /hide views using the active Page (IWorkbenchpage)
To get it your application must be up and running.
After getting the activePage you just need to call showView() or hideView() using the ViewId (see code below). The same will work for editors using corresponding methods.
Hope this helps
private IWorkbenchPage getActivePage()
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
if (window != null)
Powered by FUDForum
. Page generated in 0.01497 seconds