| How add a new perspective with a pure RCP 4 plugin to Eclipse Juno IDE [message #924006] |
Wed, 26 September 2012 07:57  |
Libor Arndt Messages: 5 Registered: September 2012 |
Junior Member |
|
|
Hi,
I'm new to developing plugins for the Eclipse IDE.
I want to create a new pure RCP 4 plugin for Eclipse 4 that adds a new perspective to the IDE.
I'm able to create a standalone RCP 4 application and I understand the priciple of using fragments for extending the RCP 4 application.
But I am not able to find any reference which element id and feature use to add a new perspective to the perspective stack of the IDE.
thanks for any advice
Libor
|
|
|
|
|
| Re: How add a new perspective with a pure RCP 4 plugin to Eclipse Juno IDE [message #930446 is a reply to message #928965] |
Tue, 02 October 2012 06:22   |
Libor Arndt Messages: 5 Registered: September 2012 |
Junior Member |
|
|
Thanks for the reply. I already have given it a try:
I created a project with a new fragment.e4xmi.
I created a new model fragnment.
I tried two element ids for the fragment:
- org.eclipse.e4.legacy.ide.application
- PerspectiveStack (which I found in Live model editr)
feature name: children
Within the nodel I added a new empty Perspective with Label and Id.
Tried to run as Eclipse application with no success.
Then I cane to conclusion identical to Sopot's.
[Updated on: Tue, 02 October 2012 07:43] Report message to a moderator
|
|
|
|
| Re: How add a new perspective with a pure RCP 4 plugin to Eclipse Juno IDE [message #931564 is a reply to message #930489] |
Wed, 03 October 2012 06:17   |
Libor Arndt Messages: 5 Registered: September 2012 |
Junior Member |
|
|
Yes, it works. I am able to replace existing Pespective in the application, which is not exactly what I want, but it can be solved easily IMO by unchecking To be rendered or/and Visible checkboxes and switch perspectives with a new menu item .
For a perspective fragment model I set element id to the element id of the Perspective Stack in the application and feature set to children.
But I had to register the plugin in the application feature editor, and to achieve that in the IDE I would have to modify Juno source files.
[Updated on: Wed, 03 October 2012 06:18] Report message to a moderator
|
|
|
|
|
|
| Re: How add a new perspective with a pure RCP 4 plugin to Eclipse Juno IDE [message #949758 is a reply to message #948096] |
Fri, 19 October 2012 05:03   |
Libor Arndt Messages: 5 Registered: September 2012 |
Junior Member |
|
|
Great! Now it works, but unfortunately not the way I want to. The perspective is added among currently opened perspectives, but not among the perspectives which can be opened via menu Window > Open Perspective.
With old 3.x way via extension the perspective was added among those.
I guess I use a wrong Element Id, but in the Live model (Shift+alt+F9) I'm not able find stack of those saved perspectives.
I'm not able to save the perspective.
UPDATE: I tried to deploy the plugin, instead of running from the IDE, and the perspective only showed among the opened ones only when I started juno with a new and empty workspace.
I wonder whether i should register my custom parts with dedicated model fragments or it is sufficient when they are contained in the perspective
[Updated on: Fri, 19 October 2012 06:44] Report message to a moderator
|
|
|
|
| Re: How add a new perspective with a pure RCP 4 plugin to Eclipse Juno IDE [message #1053292 is a reply to message #951501] |
Fri, 03 May 2013 11:46  |
Nicolas Blanc Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hello,
I am also trying to extend Eclipse's IDE with a new perspective in an Eclipse 4 fashion. Using Eclipse 3.x API I would just create a plug-in and define the org.eclipse.ui.perspectives extension.
Usine the Eclipse 4 API, I understand that instead of defining the extension point I need to add a fragment with a perspective component to the plug-in, but I could not get my perspective in the Open Perspective Dialog so far.
It would be fantastic if someone could provide a complete example for doing this.
Thanks,
Nicolas
|
|
|
Powered by
FUDForum. Page generated in 0.04494 seconds