Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to open two view in eclipse at one go?
How to open two view in eclipse at one go? [message #294583] Mon, 14 November 2005 11:17 Go to next message
Eclipse UserFriend
Originally posted by: seshasai.aesv.softwareag.com

Hi All

I need to just select one option in the

windows>>show view>>Others and select one option then I should provide me with
two views

alternatively can I call one view inside another view so If I do some
chnages in one view it effects another view.

Thanks in advance

venkat
Re: How to open two view in eclipse at one go? [message #294592 is a reply to message #294583] Mon, 14 November 2005 12:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

> I need to just select one option in the

> windows>>show view>>Others and select one option then I
> should provide me with two views

Please restate the above question a little clearly.

> alternatively can I call one view inside another view so
> If I do some chnages in one view it effects another view

You can get handle to another view from some view as follows ..
class FirstViewPart extends ViewPart
{	
	private SecondViewPart getSecondView()
	{
		return getSite().getPage().findView(SecondViewPart.ID);		
	}
}

class SecondViewPart extends ViewPart
{
	/* view id as declared in plugin.xml */
	public static final String ID = "com.xyz.SecondViewPart";
}


Thanks,
Venkataramana M
Re: How to open two view in eclipse at one go? [message #294614 is a reply to message #294592] Tue, 15 November 2005 03:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: seshasai.aesv.softwareag.com

Hi Venkataramana
thanks for answering second part of the question.

What I want was when one selects only one option for a view,then I should
see two tab views,(normalyy only one view opens)

regards
venkat
Re: How to open two view in eclipse at one go? [message #294615 is a reply to message #294614] Tue, 15 November 2005 04:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

You have to open the second view programatically. You could do this in
the init method of the first view.

Regards
Stefan

venkat wrote:
> Hi Venkataramana thanks for answering second part of the question.
>
> What I want was when one selects only one option for a view,then I
> should see two tab views,(normalyy only one view opens)
>
> regards
> venkat
>
Re: How to open two view in eclipse at one go? [message #294620 is a reply to message #294615] Tue, 15 November 2005 06:30 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

To complement Stefan's post, the implementation could be like this ..
class FirstViewPart ..
{
	public void init(IViewSite site) throws PartInitException
	{
		super.init(site);
		
		/* open second view */
		getSite().getPage().showView(SecondViewPart.ID, IWorkbenchPage.VIEW_VISIBLE/*VIEW_ACTIVATE*/);
	}
}


Thanks
Venkataramana M
Previous Topic:Decorator startup...
Next Topic:Correction on org.eclipse.target ; ResourcesPlugin problem
Goto Forum:
  


Current Time: Sun Jun 08 06:49:16 EDT 2025

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

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

Back to the top