Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Zoom in view?(How do I zoom in a view?)
Zoom in view? [message #560080] Tue, 21 September 2010 07:07 Go to next message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
Hello Experts Smile

I hope I post this topic in the correct folder.

I am trying to add zoom support to my viewpart.
I am looking on this site:
http://www.eclipse.org/articles/Article-UI-Workbench/workben ch.html#mozTocId917303

And can see that I should use a ViewPane to get the zoomfunctionality. But I just can see how to get the ViewPane.

My class PrintView extends ViewPart, so is it possible to access the ViewPane trough this?

Hope that someone could guide me a little in how to archive zoom in a view.

PS. I am using SWT controls on my view. I hope that this doesn't introduce any limitations.

Many thanks in advance.

Regards Mikkel

Re: Zoom in view? [message #560176 is a reply to message #560080] Tue, 21 September 2010 12:58 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Is it you just want the ability to zoom that view? if it is the active
view, CTRL+M will toggle some out and in.

If you need to do it programmaticly, try
org.eclipse.ui.IWorkbenchPage.toggleZoom(IWorkbenchPartRefer ence)

--
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


Re: Zoom in view? [message #560231 is a reply to message #560176] Tue, 21 September 2010 15:52 Go to previous message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
Hello Paul

Thanks for your help.

The CTRL-M is just for maximize the view. What I want is a zoom function that will maximize the content inside the view. The reason why I ask for the ViewPane is because I have read something about that they have some zoom methods. But If I can't create a ViewPane and can't get access to a instance of one. Then I don't know where to start.

Hope you could guide me in the right direction Smile

Regards
Previous Topic:Get lazy main menu items
Next Topic:Closing editors when project is closed/deleted
Goto Forum:
  


Current Time: Sat Dec 20 03:48:51 GMT 2014

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

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