[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Adding a view to a perspective

Rahul Kamdar wrote:
To add a view to an already existing perspective you can use the org.eclipse.ui.perspectiveExtensions extension point in your plugin.xml where you can specify the perspective and the view you wish to add. But doing this will add the view if not present (there won't be any prompts or messages to the user). I am not sure how to do that (regarding giving the user a message and then accordingly bringing the view up).

I don't really get your notion of the app getting updated when run once so not sure what will really help you!

Hope the perspectiveExtensions helps,
Rahul


"Derek" <subs@xxxxxxxxxxxxxxxxxxxxx> wrote in message news:g4d939$bf0$1@xxxxxxxxxxxxxxxxxxxx
Hi,

I have created an update to my RCP app that has added a view to a perspective. If the app has not been run before (i.e. a clean install), the view appears as I expect. However, if the app has been run before (i.e it has been updated), then the new view does not appear (as the stored perspectives 'state' does not contain the view). I can get the view to appear by reseting the perspective.

I want to detect this situation (the update case) and issue a message to the user that a new view is available and ask them if they want to display it.

Does anybody have some ideas that will point me in the right direction for implementing this?

Thanks,

--
Derek


Rahul,

Thanks, but I already have a perspective extension that works.

My issue is this:
I already have a product that customers have installed. I am providing an update to that product (via the Eclipse update mechanism). In this update, I have added a new view to an existing perspective. This new view does not appear until the customer does a "reset perspective". I would like to automate this process, so that the users doesn't have to do anything.


--
Derek