Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Zoom view to a specific size or % of screen(Zoom view to a specific size or % of screen)
Zoom view to a specific size or % of screen [message #529190] Fri, 23 April 2010 11:12 Go to next message
Richard Hughes is currently offline Richard HughesFriend
Messages: 20
Registered: April 2010
Junior Member
Hi

I would like to be able to do the following.

I have a page layout with 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 programatically zoom/maximize view A so that
it fills 90% of the height and 100% of the width ( so it hides view B but 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 to achieve what I wanr.

Thanks.

[Updated on: Fri, 23 April 2010 11:14]

Report message to a moderator

Re: Zoom view to a specific size or % of screen [message #529239 is a reply to message #529190] Fri, 23 April 2010 14:36 Go to previous message
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:Add menu option to popup on View tab
Next Topic:How do I open office documents using SWT
Goto Forum:
  


Current Time: Wed Dec 11 19:12:50 GMT 2019

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

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

Back to the top