Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Re: Zoom view to a specific size or % of screen
Re: Zoom view to a specific size or % of screen [message #529241] Fri, 23 April 2010 14:36
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I've redirected to RCP since this is not an SWT problem.

Richard Hughes wrote:
> Hi
>
> I would like to be able to do the following.
>
> I have a page layout width folders split into three areas.
>
> Two views displayed side by side , which take 90% of the page hieght and
> 50% of the page width. ( Views A and B )
>
> One view along the bottom with takes 10% of the page height and 100% of
> the page width. ( view C ).
>
> I would like to programitcally zoom/maximize view A so that
> it fills 90% of the height and 100% of the width ( so does not
> hide view C ).
>
> Can somebody point me in the right direction.
> I can use IWorkbenchPage.toggleZoom() to maximise view A, but I dont
> know if there is something I can do with the pageLayout
> Thanks.
>


There's no API to do what you want. It sounds like you want to reset
the weights on the part sash containers. I'm not even sure how you
would get that except by wading through the presentation/layout code.
That's all internals, and can change at any time (and it pretty scary, too).

If you do want to try and make it work for your specific version of
eclipse, you can have a read of
http://www.eclipse.org/articles/Article-UI-Workbench/workben ch.html

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:RCP + JNLP conflict
Next Topic:Default Icon for new Shells
Goto Forum:
  


Current Time: Sat Apr 27 02:41:27 GMT 2024

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

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

Back to the top