|
Re: Textual Editor Integration [message #1243088 is a reply to message #1243001] |
Mon, 10 February 2014 13:53 |
|
Le 10/02/2014 12:23, Xabier De Carlos a écrit :
> Hello,
Hi.
> I'm a PhD student and my research area is the development of modelling
> tools. I was thinking on an approach helping on the integration between
> different modelling editors (i.e. GMF, XText, etc.). But I've found
> Sirius, and it already supports the specification of different editors:
> textual, tree, tabular.
Sirius itself does not support the definition of textual modelers. It
might be possible to do something like this by providing a new dialect
implementation (using the supplied extension point), but out-of-the box
Sirius currently supports only diagrams, tables (normal and
cross-tables) and trees.
> You also say that the integration between Sirius
> and Xtext is supported by a specific plug-in.
More specifically, you need the org.eclipse.sirius.common.xtext plug-in,
which makes it possible to use any Xtext model as a semantic model in
Sirius project/session, and thus to create Sirius-based graphical
representation on these models.
> But, you have plan in the future to add textual definition within the
> .odesign model?
I'm not sure I understand what you mean. Do you mean a textual syntax
for (parts of) the .odesign model or the ability in the .odesign model
to define textual modelers?
> Or another more advanced integration with textual editors?
There is https://github.com/ObeoNetwork/Xtext-viewpoint-integration It
was created on a earlier version of Sirius (then called Viewpoint), but
it should be possible to adapt it to Sirius.
I am not aware of any other work or plan in this area. What kind of
integration do you have in mind?
Regards,
Pierre-Charles David
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: Textual Editor Integration [message #1243873 is a reply to message #1243806] |
Tue, 11 February 2014 15:11 |
|
Le 11/02/2014 14:19, Xabier De Carlos a écrit :
> Hi Pierre-Charles David,
Hi Xabier
> I'm trying to reproduce the plugin that adds textual edition as an
> embedded dialog that you reference in a previous post.
> I've changed some references from Obeo Designer to Sirius.
>
> But then I don't know how to add the java extension point within the
> ODESIGNER file.
You need to:
1. subclass the OpenXtextEmbeddedEditor to bind to your own Xtext model.
2. register that subclass in the org.eclipse.sirius.externalJavaAction
extension point using some identifier
3. in your odesign file, in the body of the tool you want to trigger the
textual edition (for example inside a Direct Edit Tool), create an
"External Java Action" element and set its "Id" attribute to identifier
you used to register your custom class.
Regards,
Pierre-Charles David
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03386 seconds