Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Textual Editor Integration(Integrate sirius editors and textual editors)
Textual Editor Integration [message #1243001] Mon, 10 February 2014 06:23 Go to next message
Xabier De Carlos is currently offline Xabier De Carlos
Messages: 10
Registered: September 2013
Junior Member
Hello,

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. You also say that the integration between Sirius and Xtext is supported by a specific plug-in.

But, you have plan in the future to add textual definition within the .odesign model? Or another more advanced integration with textual editors?

Thank you for your attention

Best regards,
Xabi.
Re: Textual Editor Integration [message #1243088 is a reply to message #1243001] Mon, 10 February 2014 08:53 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles David
Messages: 124
Registered: July 2009
Senior Member
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
Re: Textual Editor Integration [message #1243135 is a reply to message #1243088] Mon, 10 February 2014 10:09 Go to previous messageGo to next message
Xabier De Carlos is currently offline Xabier De Carlos
Messages: 10
Registered: September 2013
Junior Member
Hi,

Thanks for your response.
Response to the last questions:

>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?

I mean adding the support for specifying explicitly editors that are used for editing textually model parts.

>> 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.

My idea is similar to this, but it seems that this example supports a side-by-side integration where the model is entirelly shown textually.

>I am not aware of any other work or plan in this area. What kind of
>integration do you have in mind?

My idea is to focus only on specific parts of the model, where textual edition is preferred (not the model entirelly). Being so, one possible approach to contribute with my PhD is the integration of textual editors that cover only the specification of concrete parts of the model.


Thanks,
Xabi.
Re: Textual Editor Integration [message #1243806 is a reply to message #1243088] Tue, 11 February 2014 08:19 Go to previous messageGo to next message
Xabier De Carlos is currently offline Xabier De Carlos
Messages: 10
Registered: September 2013
Junior Member
Hi Pierre-Charles David,

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.

Thank you,

Best regards,
Xabi.
Re: Textual Editor Integration [message #1243873 is a reply to message #1243806] Tue, 11 February 2014 10:11 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles David
Messages: 124
Registered: July 2009
Senior Member
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
Re: Textual Editor Integration [message #1243880 is a reply to message #1243873] Tue, 11 February 2014 10:21 Go to previous message
Xabier De Carlos is currently offline Xabier De Carlos
Messages: 10
Registered: September 2013
Junior Member
Hi,

Thanks, I've solved it. The problem was the third step. I've completed it correctly and now the textual dialog appears Smile

Now there is another problem, if I edit the textual dialog changes are not propagated.



Thank you very much for your help!!!
Best regards,

Xabi.
Previous Topic:Integrating sirius into an RCP application, Best Practices
Next Topic:Limit selection of candidates for association
Goto Forum:
  


Current Time: Wed Aug 20 03:04:08 EDT 2014

Powered by FUDForum. Page generated in 0.04787 seconds