Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to invoke a new view from existing view
how to invoke a new view from existing view [message #529517] Mon, 26 April 2010 09:15 Go to next message
daitkarsachin  is currently offline daitkarsachin Friend
Messages: 8
Registered: April 2010
Junior Member
Hi friends,
I need to build an Eclipse RCP application in which i need to invoke another view from existing view..
could anybody will please help me with some code sample or with some hint ?
Re: how to invoke a new view from existing view [message #529541 is a reply to message #529517] Mon, 26 April 2010 10:12 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi daitkarsachin,

> I need to build an Eclipse RCP application in which i need to invoke
> another view from existing view..
> could anybody will please help me with some code sample or with some hint ?

just register your view and invoke getSite().getPage().showView() in your view.

See also:

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench_basicext_views.htm

http://help.eclipse.org/galileo/nftopic/org.eclipse.platform .doc.isv/reference/api/org/eclipse/ui/IWorkbenchPage.html#sh owView%28java.lang.String%29

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/reference/extension-points/org_eclipse_ui_ views.html

Greetings,

Ralf

--
Learn how to contribute to Eclipse here: http://eclipse.org/contribute/
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
Previous Topic:Default Icon for new Shells
Next Topic:Missing .jnlp after feature export
Goto Forum:
  


Current Time: Fri Apr 19 19:46:56 GMT 2024

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

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

Back to the top