|
|
Re: Adding Views and Perspectives dynamically [message #437537 is a reply to message #437472] |
Thu, 29 September 2005 20:22 |
Hani Seifeddine Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Thanks Alex I will give it a try.
Can we do the same thing with views? I mean defining views dynamically
and not within the plugin.xml
Regards,
H.S
On Thu, 29 Sep 2005 07:59:45 EDT, Alex Blewitt
<alex_blewitt@yahoo.com> wrote:
>If you have a single perspective, you could create a PerspectiveFactory class that does the initial layout, as described in
>
> http://help.eclipse.org/help30/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/ui/IPerspectiveFactory.html
>
>However, this only has any effect (a) when the perspective is first created, or (b) if the perspective is 'reset' to its status.
>
>If it were programmatically possible to issue the 'reset' call, you might be able to use this mechanism. The menu performs a call to 'IWorkbenchPage.resetPerspective()', so if you call that you may be able to relayout the perspective on demand.
>
>However, you wouldn't be able to do that with dynamic perspectives as such. The number of perspectives is fixed per plugin.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02471 seconds