Programmatically minimize view stack to trim [message #467805] |
Thu, 10 May 2007 16:55 |
Eclipse User |
|
|
|
I'm working on an RCP application where I'd like a folder of views to be
minimized to the top trim in the intial layout. So far the best I have is:
IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
IWorkbenchPartReference myView = page.findViewReference(myView.ID);
page.setPartState(myView, IWorkbenchPage.STATE_MINIMIZED);
I currently have this code in my WorkbenchAdvisor.postStartup() method.
The main disadvantage of this is that I see the animation of the view stack
being minimized when my app loads. Also, the view stack is minimized to the
right trim and I'd like it to be on the top trim.
Anyone know a good way of doing this? By the way, the new minimize/maximize
is awesome!
|
|
|
Powered by
FUDForum. Page generated in 0.03519 seconds