Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Open a view from within another view
Open a view from within another view [message #158675] Wed, 19 November 2003 01:44 Go to next message
Eclipse UserFriend
Originally posted by: dirk.segelhorst[NO_SPAM].vector-consulting.de

Hi,

how can I open a view from within another view? Is there any access from a
view to the actual perspective information?

Regards,

Dirk
Re: Open a view from within another view [message #160875 is a reply to message #158675] Mon, 24 November 2003 07:02 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.dalelane.co.uk

i'm no expert... and am not claiming this is the definitive way to do it -
but this worked for me:

in the JAVA source file:
MyCustomPlugin.getDefault().getWorkbench().getActiveWorkbenc hWindow().getActivePage().showView( "my.view.id");

in the XML plugin file:
<extension id="my.id" name="my view name" point="org.eclipse.ui.views">
<view
name="my view title - for title bar"
category="category.id"
class="class.of.my.View.class.which.extends.ViewPart"
id="my.view.id" />
</extension>

hope that helps!

D


Dirk Segelhorst wrote:

> Hi,
> how can I open a view from within another view? Is there any access from a
> view to the actual perspective information?
> Regards,
> Dirk
Previous Topic:links on nt!!
Next Topic:View related Questions
Goto Forum:
  


Current Time: Mon Jul 14 15:43:23 EDT 2025

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

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

Back to the top