Can anybody tell me how to add a simple View to an existing RCP-application ? Waht I want to do, is simply to show a view (an image) on my RCP while nothing is selected in the pop up menu !! do I need an other View to impelement for this, or there is an other way to realize this ? maybe some changes in the Application.java Class (start()) ?! I'm not familiar with RCP.. please help !! Greets, Crombix
thank very much for the reply !! I've tried to create a new plugIn view like described in the following link: http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l
it works, but as I've tried to include this view to my RCP I couldn't see any changes... I've extended: org.eclipse.ui.views in my RCP with a new view and then added the View Class wich extend the Viewpart but without result.. That confuse me.. because as eclipse plugin I can show my new View by pressing window --> show view .etc.. but in the RCP I don't habe window in my Menubar !!! thanks for helping me !! Crombix.
So if I understand it correctly you have a plugin that contains your main application? You are contributing a view to that application by extending the org.eclipse.ui.views. This is all good and correct.
The one item that you are missing is that the view is never added to your perspective. So what you need to do is either go to your plugin.xml and see if there is org.eclipse.ui.perspectiveExtensions is extended with your applications perspective class. If it is then click on that extension and press view. Then type in your view id.
Otherwise find the perspective class used my your application and in the createInitialLayout method do: