|
|
|
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 10: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 11: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 10: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 10: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 09: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 10:44] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26314 seconds