Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show View and open Perspective in my own RCP
Show View and open Perspective in my own RCP [message #488889] Wed, 30 September 2009 15:39 Go to next message
Michelle Davidson is currently offline Michelle Davidson
Messages: 41
Registered: August 2009
Member
Hello,

I have write a rcp with 2 perspectives and 3 views on every perspective. the views are not the same.

Now I'm looking for a possibility to get the Window Menu with the submenus Show View and Open Perspective. On the 2. level of this menus I want to see my views of the current perspective or the 2 perspective so that I can open views and change the perspective in a simple way like I do this in the IDE.

With usage of the eclipse standard commands org.eclipse.ui.perspectives.showPerspective and org.eclipse.ui.window.showView I get the menuItems but then I cant select my perspectives or views but a dialog is opening with the views an perspectives.

What are the right commands or must i do that with the Actions? And how I can do this?
Re: Show View and open Perspective in my own RCP [message #488905 is a reply to message #488889] Wed, 30 September 2009 16:20 Go to previous message
Christian is currently offline Christian
Messages: 72
Registered: July 2009
Member
Michelle Davidson schrieb:
> Hello,
>
> I have write a rcp with 2 perspectives and 3 views on every perspective.
> the views are not the same.
>
> Now I'm looking for a possibility to get the Window Menu with the
> submenus Show View and Open Perspective. On the 2. level of this menus I
> want to see my views of the current perspective or the 2 perspective so
> that I can open views and change the perspective in a simple way like I
> do this in the IDE.
>
> With usage of the eclipse standard commands
> org.eclipse.ui.perspectives.showPerspective and
> org.eclipse.ui.window.showView I get the menuItems but then I cant
> select my perspectives or views but a dialog is opening with the views
> an perspectives.
> What are the right commands or must i do that with the Actions? And how
> I can do this?
you could add a submenu where you add one menu item for each of your
views to be shown...
(use show view with a paramter (the view id) to open your view)

Christian
Previous Topic:ActionBar contributions when showTitle is false
Next Topic:How to shutdown on error
Goto Forum:
  


Current Time: Sat Oct 25 01:44:53 GMT 2014

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

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