Open a Sirius representation inside a View [message #1620661] |
Tue, 17 February 2015 10:37 |
Francois Cabrol Messages: 32 Registered: January 2015 |
Member |
|
|
Hi,
In my application, I would like to replace the Model Explorer view with one of the Sirius tree representations I designed. I also would need to display one of the Sirius table representations in a dedicated view.
So I am wondering if it is possible to programmatically display a Sirius representation inside a View, instead of the editor area (which is the case when calling DialectUIManager.INSTANCE.openEditor).
Does the Sirius or GMF API provide a way to do this ?
So far, I have been using the EModelService and EPartService of the e4 workbench model to move the editor part into a given placeholder after the call to openEditor, but I do not find this way optimal.
Thanks in advance for your help,
François
[Updated on: Tue, 17 February 2015 13:10] Report message to a moderator
|
|
|
Re: Open a Sirius representation inside a View [message #1631138 is a reply to message #1620661] |
Mon, 23 February 2015 16:09 |
|
Le 17/02/2015 11:37, Francois Cabrol a écrit :
> Hi,
Hi.
> In my application, I would like to replace the Model Explorer view
> with one of the Sirius tree representations I designed. I also would
> need to display one of the Sirius table representations in a dedicated
> view.
>
> So I am wondering if it is possible to programmatically display a
> Sirius representation inside a View, instead of the editor area (which
> is the case when calling DialectUIManager.INSTANCE.openEditor).
> Does the Sirius or GMF API provide a way to do this ?
While we are aware of this need, it is not possible currently and would
require relatively large changes in Sirius (and possibly in GEF and
GMF). It's definitly something we would like to allow, but it is not
planned at the moment.
If you need is simply to show the editor outside of the main editor
area, this is possible since Eclipse 4.2 (e4 does not really treat the
main editor area as something special), so you can have your editor
"around" another editor in the middle of other views.
Regards,
Pierre-Charles
--
Pierre-Charles David - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02609 seconds