Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show view in another perspective
Show view in another perspective [message #463318] Thu, 08 February 2007 10:55 Go to next message
Patrick Godeau is currently offline Patrick GodeauFriend
Messages: 64
Registered: July 2009
Member
Hello,

How to know what views are in a perspective?

I'm trying to implement a "Show view" action working like this:
- focus the chosen view if present in the current perspective,
- if the view is in another perspective, open this perspective and focus
the view,
- if the view isn't in any perspective, open it in the current perspective.

I know how to get all defined perspectives and views, but what I'm
missing is how to know if a view is contained in a perspective.

Your help is welcome!

--
Patrick
Re: Show view in another perspective [message #463343 is a reply to message #463318] Thu, 08 February 2007 17:14 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
You can access only the view in the current perspective.
There is no way to know if the view is present in the perspective that
isn't the current perspective.
This is a disadvantage of Eclipse <=3.2. I don't know if this is
possible in Eclipse 3.3.

Snjeza

Patrick Godeau wrote:
> Hello,
>
> How to know what views are in a perspective?
>
> I'm trying to implement a "Show view" action working like this:
> - focus the chosen view if present in the current perspective,
> - if the view is in another perspective, open this perspective and focus
> the view,
> - if the view isn't in any perspective, open it in the current perspective.
>
> I know how to get all defined perspectives and views, but what I'm
> missing is how to know if a view is contained in a perspective.
>
> Your help is welcome!
>
Re: Show view in another perspective [message #463446 is a reply to message #463343] Mon, 12 February 2007 13:24 Go to previous messageGo to next message
Patrick Godeau is currently offline Patrick GodeauFriend
Messages: 64
Registered: July 2009
Member
Snjezana Peco a écrit :
> You can access only the view in the current perspective.
> There is no way to know if the view is present in the perspective that
> isn't the current perspective.
> This is a disadvantage of Eclipse <=3.2. I don't know if this is
> possible in Eclipse 3.3.

I've succeeded by showing successively each perspective until I find the
view... But I'd like to know if there's a better way.

--
Patrick
Re: Show view in another perspective [message #466404 is a reply to message #463318] Wed, 18 April 2007 12:36 Go to previous message
Nicolai Czempin is currently offline Nicolai CzempinFriend
Messages: 21
Registered: July 2009
Junior Member
Patrick Godeau schrieb:
> Hello,
>
> How to know what views are in a perspective?
>
> I'm trying to implement a "Show view" action working like this:
> - focus the chosen view if present in the current perspective,
> - if the view is in another perspective, open this perspective and focus
> the view,
> - if the view isn't in any perspective, open it in the current perspective.
>
> I know how to get all defined perspectives and views, but what I'm
> missing is how to know if a view is contained in a perspective.
>
> Your help is welcome!
>

What do you do when the view is not in the present perspective, but in n (>1) other perspectives?
Previous Topic:Couldn't open a file using path variable not accepting space
Next Topic:Defining layout of the coolbar programmatically
Goto Forum:
  


Current Time: Fri Apr 19 19:31:34 GMT 2024

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

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

Back to the top