|
|
Re: Creating a sidebar - how can I resize a view programatically? [message #507653 is a reply to message #507446] |
Thu, 14 January 2010 09:32 |
John Ormerod Messages: 39 Registered: January 2010 |
Member |
|
|
Thanks Paul.
Hmmm... 'minimize', makes a lot of sense, duh!
I found a way to do this in a forum entry from 2007:
page.setPartState(myView, IWorkbenchPage.STATE_MINIMIZED);
This hides the view contents, reduces the width of the view to the same point that you can drag it to, but the leaves the view's tab showing. Same goes for a non-sticky view. (This is 3.5.1).
This is what happens when I press the minimize icon.Yet in the IDE, minimize does indeed close a view completely (and shows a list of minimised views). So, I guess there is something extra in the IDE. I'll have a search in the IDE's code, but if you know the area to look in, a pointer would be helpful - unless you actually know what I have to do.
Thanks, John
|
|
|
|
Powered by
FUDForum. Page generated in 0.04156 seconds