Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is a ViewPane automatically created when creating ViewPart?(Is a ViewPane automatically created when creating ViewPart?)
Is a ViewPane automatically created when creating ViewPart? [message #560157] Tue, 21 September 2010 11:28 Go to next message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
When I create a view extension in the plugin.xml and point to my class HelloView which extends ViewPart how do I then access the ViewPane? Is it automatically created? Or should I make a ViewPane myself and if how?

When I try to create a ViewPane (IViewReference, Workbenchpage) I get a warning with Access restriction :/

So how do I get the ViewPane?
Re: Is a ViewPane automatically created when creating ViewPart? [message #560175 is a reply to message #560157] Tue, 21 September 2010 12:55 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You cannot get a view pane, it's an internal implementation detail.

What are you trying to do, exactly?

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


Re: Is a ViewPane automatically created when creating ViewPart? [message #598773 is a reply to message #560175] Tue, 21 September 2010 18:52 Go to previous messageGo to next message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
Is it then Possible to get the ViewStack?.

On this site:
http://www.eclipse.org/articles/Article-UI-Workbench/workben ch.html#mozTocId917303

In section 3.2 I see that I need to get either the ViewPane or the ViewStack in order to user the zoom functionality.

Can't figure out how to zoom otherwise. :/
Re: Is a ViewPane automatically created when creating ViewPart? [message #628721 is a reply to message #598773] Thu, 23 September 2010 18:52 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Mikkel Jonassen wrote:
> Is it then Possible to get the ViewStack?.


No. That articles is about the internals of the workbench, and is only
valid for the 3.x stream.

>
> On this site:
> http://www.eclipse.org/articles/Article-UI-Workbench/workben ch.html#mozTocId917303
>


> Can't figure out how to zoom otherwise. :/

Can't you use the IWorkbenchPage methods?

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


Re: Is a ViewPane automatically created when creating ViewPart? [message #628732 is a reply to message #628721] Thu, 23 September 2010 20:06 Go to previous messageGo to next message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
I have tried the tooglezoom, but can't make it work :/

Do you have a link to any toturials? or can you guide me in how to do it?

You help is very apriciated Smile


Regards


EDIT: Isn't tooglezoom just a maximize window function? What I want is a ZoomIn / ZoomOut which can zoom for example to 200% or to 50%

It doesn't have to be in a ZoomContributionItem because I couldn't make that work, so in a simple popup would be just great also.


[Updated on: Thu, 23 September 2010 20:17]

Report message to a moderator

Re: Is a ViewPane automatically created when creating ViewPart? [message #628937 is a reply to message #628732] Fri, 24 September 2010 19:41 Go to previous messageGo to next message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
Is it possible to get zoom functionality if I extend my SWT controls / visuals with a ViewPane and then some how add this to the viewpart?

I have been told that the above is the way to go, but can't see how to implement it that way.

Thanks for all your time.

Regards
Re: Is a ViewPane automatically created when creating ViewPart? [message #628949 is a reply to message #628732] Fri, 24 September 2010 20:02 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Mikkel Jonassen wrote:
> I have tried the tooglezoom, but can't make it work :/

What does your code look like?

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


Re: Is a ViewPane automatically created when creating ViewPart? [message #628980 is a reply to message #628949] Sat, 25 September 2010 11:38 Go to previous message
Mikkel Jonassen is currently offline Mikkel JonassenFriend
Messages: 24
Registered: September 2010
Junior Member
The tooglezoom works now, but it is just the same as maximizing the view.. The same functionality is given when doubleclincking on the view tab.

What I am searching is a way to create an easy zoom function. where the user can select a zoom percentage.
Previous Topic:Can not find plug-in id
Next Topic:RCP application Palette
Goto Forum:
  


Current Time: Fri Apr 19 21:25:19 GMT 2024

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

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

Back to the top