Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to run xtext-sirius-integration
How to run xtext-sirius-integration [message #1705937] Thu, 20 August 2015 09:30 Go to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
I downloaded the xtext-sirius-integration from https://github.com/ObeoNetwork/Xtext-Sirius-integration
and imported the xtext-support-parent folder into an empty project workspace.

How can I run the example?

[Updated on: Thu, 20 August 2015 10:00]

Report message to a moderator

Re: How to run xtext-sirius-integration [message #1706859 is a reply to message #1705937] Mon, 31 August 2015 13:21 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Le 20/08/2015 11:30, Elvis Dowson a écrit :
> I downloaded the xtext-sirius-integration from
> https://github.com/ObeoNetwork/Xtext-Sirius-integration

This version is compatible with Sirius 1.0.x


>
> and imported the xtext-support-parent folder into an empty project
> workspace.

This folder contains:
. examples
. org.eclipse.sirius.example.fowlerdsl
- the xtext grammar, the generated metamodel and code to
manipulate the models.
. org.eclipse.sirius.example.fowlerdsl.edit
- the corresponding generated EMF edit plugin
. org.eclipse.sirius.example.fowlerdsl.ui
- the corresponding xtext editor
. org.eclipse.sirius.example.fowlerdsl.design
- the modeler
. features
. org.obeonetwork.dsl.viewpoint.feature.xtext.support
- a feature project
. org.obeonetwork.dsl.viewpoint.xtext.support.update
- an update site project
. plugins
. org.obeonetwork.dsl.viewpoint.xtext.support
- the integration plugin

>
> How can I run the example?
>
>

You need to import the org.obeonetwork.dsl.viewpoint.xtext.support
plugin project and the fowlerdsl example plugins in your workspace (and
not the xtext-support-parent folder), then just launch a runtime and you
will be able to test the integration smaple plugin.

Note that it will be interesting to also install the Sirius-Xtext bridge
plugin which is located in the Siris update site. It will:
. configure Sirius to use a XTextResourceSet,
. configure the load options to use a live scope,
. change the saving policy to be more efficient with Xtext,
. and configure the Xtext save option to disable the model validation
during save.

Regards,

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to run xtext-sirius-integration [message #1706861 is a reply to message #1706859] Mon, 31 August 2015 13:51 Go to previous messageGo to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
Thank you, Maxime.
Re: How to run xtext-sirius-integration [message #1706898 is a reply to message #1706861] Mon, 31 August 2015 16:48 Go to previous messageGo to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
Hi,

I'm unable to open the embedded editor.

If I double click on a command, it directly opens the Xtext editor, and not the embedded editor on the statemachine diagram, as shown in the presentation slides.

I've loaded the xtext.support plugin in both my development workspace and runtime workspace. I've also installed the Xtext Sirius support plugin for Sirius 3.0.0 from the update site for Eclipse 4.5 Mars.

Regards,

Elvis Dowson

[Updated on: Mon, 31 August 2015 17:35]

Report message to a moderator

Re: How to run xtext-sirius-integration [message #1706902 is a reply to message #1706898] Mon, 31 August 2015 17:34 Go to previous messageGo to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
Update: I put the org.eclipse.siritus.example.fowler.design project in my eclipse workspace (and not the run-time workspace), and if I right click on a command or a state, I get a context-menu option to open the embedded editor. The embedded editor displays the contents of the node. However, it is read-only and there is no way to close the embedded editor. Additionally, if you open a top most node in the diagram, the embedded editor opens partially outside the diagram area, and cannot be moved or closed.

As I understand, the normal way to develop with Sirius is to create your design project in a run-time workspace so that you can preview your changes quickly. However, if I load the design project within my runtime workspace, I no longer have the context menu option to open the embedded editor.

I would just like to clarify if what I've described above are currently limitations of the xtext/sirius integration, and not related to my Eclipse Platform version (4.5 Mars).
Re: How to run xtext-sirius-integration [message #1707088 is a reply to message #1706902] Wed, 02 September 2015 08:31 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Elvis,

Le 31/08/2015 19:34, Elvis Dowson a écrit :
> Update: I put the org.eclipse.siritus.example.fowler.design project in
> my eclipse workspace (and not the run-time workspace), and if I right
> click on a command or a state, I get a context-menu option to open the
> embedded editor. The embedded editor displays the contents of the node.
> However, it is read-only and there is no way to close the embedded
> editor. Additionally, if you open a top most node in the diagram, the
> embedded editor opens partially outside the diagram area, and cannot be
> moved or closed.
>
> As I understand, the normal way to develop with Sirius is to create your
> design project in a run-time workspace so that you can preview your
> changes quickly. However, if I load the design project within my runtime
> workspace, I no longer have the context menu option to open the embedded
> editor.

If you have your project in your runtime, Sirius will be able to use
your modeler from its description in the workspace, it will also be able
to use your java services (might depend on the version) but the eclipse
standard extensions (menus, view, ...) requires to deploy the plugin
that is why you can only see them if the plugin project is in your IDE
workspace as it will be deployed for your runtime.

>
> I would just like to clarify if what I've described above are currently
> limitations of the xtext/sirius integration, and not related to my
> Eclipse Platform version (4.5 Mars).

This Xtext/Sirius integration has been developped has a proof of
concept, therefore it is hosted on github instead of being directly
integrated in the Sirius/XText bridge.

The POC allowed to test several ways to integrate both tools but as you
mentionned there are some limitations or improvements to adress in order
to industrialize it.

Regards,

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to run xtext-sirius-integration [message #1716276 is a reply to message #1706859] Wed, 02 December 2015 16:09 Go to previous messageGo to next message
George Gao is currently offline George GaoFriend
Messages: 2
Registered: December 2015
Junior Member
Hi Maxime,

I am a beginner to Sirius and Xtext.
I try to find the plug in "Sirius-xtext bridge plugin" at Sirius update site, but only find "Sirius Integration with Xtext". Is this the one that is needed?
Also for the "fowlerdsl example plugins", do I need to import all four examples?
(. org.eclipse.sirius.example.fowlerdsl
. org.eclipse.sirius.example.fowlerdsl.edit
. org.eclipse.sirius.example.fowlerdsl.ui
. org.eclipse.sirius.example.fowlerdsl.design)

When I import these four examples and the org.obeonetwork.dsl.viewpoint.xtext.support, should I import them as "Existing projects into Workspace"?

George
Re: How to run xtext-sirius-integration [message #1716280 is a reply to message #1706859] Wed, 02 December 2015 16:42 Go to previous messageGo to next message
George Gao is currently offline George GaoFriend
Messages: 2
Registered: December 2015
Junior Member
Hi Maxime,

Could you also explain briefly how to run it once I imported the necessary plugins?

Thank you.

George
Re: How to run xtext-sirius-integration [message #1716673 is a reply to message #1716276] Mon, 07 December 2015 12:56 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Le 02/12/2015 19:22, George Gao a écrit :
> Hi Maxime,

Hi.

> I am a beginner to Sirius and Xtext. I try to find the plug in
> "Sirius-xtext bridge plugin" at Sirius update site, but only find
> "Sirius Integration with Xtext". Is this the one that is needed?

Yes. The feature is org.eclipse.sirius.runtime.ide.xtext, and contains a
single plug-in, org.eclipse.sirius.common.xtext.

> Also for the "fowlerdsl example plugins", do I need to import all four
> examples?
> (. org.eclipse.sirius.example.fowlerdsl
> org.eclipse.sirius.example.fowlerdsl.edit
> org.eclipse.sirius.example.fowlerdsl.ui
> org.eclipse.sirius.example.fowlerdsl.design)

I'm not familiar with this specific example, but yes you probably need
all of these.

> When I import these four examples and the
> org.obeonetwork.dsl.viewpoint.xtext.support, should I import them as
> "Existing projects into Workspace"?

As a first step, yes, but they are Eclipse plug-ins, so if you want to
actually use them you'll need to either build and install them into your
Eclipse instance, or (simpler) launch a runtime from that instance.

Regards,
Pierre-Charles

--
Pierre-Charles David - Obeo

Need training or 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
Re: How to run xtext-sirius-integration [message #1717195 is a reply to message #1716673] Thu, 10 December 2015 16:29 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi,

As Sirius integration uses an Extension Point, Can we run/have the integration project (Viewpoint Spec. and support) and modelling (Sirius Modelling) in the same instance of eclipse.

Right now, I have my Sirius .design and modelling projects in the same instance to get a live/instant presentation whenever I change any thing in the .design. But I think if I wanna use integration project, a new eclipse instance should be run to use it ? Is that correct ? Is there anyway to have the integration and modelling project in the same eclipse instance ?

Thanks,
Regards,
Parsa
Re: How to run xtext-sirius-integration [message #1726377 is a reply to message #1717195] Sat, 12 March 2016 00:37 Go to previous message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi,
It seems that Sirius Xtext integration on Transitions does not work. i.e. Let's say we need to show the Embedded Xtext Viewer for a transition double click in the same way that we double click on an State on the diagram. It does not work on transitions (Edges). Do you have any idea what to do ? Obviously, I have set the double click action of the transition edge to OpenEmbeddedEditor (external java action call).

Thanks,
Bests,
Parsa

[Updated on: Sat, 12 March 2016 00:37]

Report message to a moderator

Previous Topic:Can't Make Pop-up Menu ... uh pop-up
Next Topic:Edge between Borderen nodes inside a container (Sirius)
Goto Forum:
  


Current Time: Thu Apr 18 15:38:08 GMT 2024

Powered by FUDForum. Page generated in 0.04346 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top