Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to run DSL-Editor in my common Eclipse-Workspace
How to run DSL-Editor in my common Eclipse-Workspace [message #1075153] Sun, 28 July 2013 22:42 Go to next message
Björn Rellesch is currently offline Björn Rellesch
Messages: 36
Registered: January 2013
Member
Hello,

I've implemented my Grammar and a Generator. Everything works fine.
But I always have to select "Run As/ EclipseApplication" to start my DSL-Editor.

Is it possible to configure my Eclipse in the way that I can use Java for my common work any my new DSL directly as soon as I started my every-day-Eclipse (without "Run As/ EclipseApplication")?


Thanks for advice
Greets Björn
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1075155 is a reply to message #1075153] Sun, 28 July 2013 22:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6385
Registered: July 2009
Senior Member
Hi,

you can (using the pregenerate sdk project) use the Export -> Deployable Features Wizard to create an Update Site you can use to install the plugins into any eclipse
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1075256 is a reply to message #1075155] Mon, 29 July 2013 06:02 Go to previous messageGo to next message
J A is currently offline J A
Messages: 31
Registered: July 2013
Member
I think that we can export into a jar, copy it into the plugins directory of the targeted Eclipse used to run DSL.

[Updated on: Tue, 30 July 2013 01:39]

Report message to a moderator

Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1075749 is a reply to message #1075256] Tue, 30 July 2013 01:39 Go to previous messageGo to next message
J A is currently offline J A
Messages: 31
Registered: July 2013
Member
But then, I have a question: where is the .jar file that contain the plugin for the eclipse Run Time ?

Say if we use an initial Eclipse to work with xtext grammar in a workspace, say C:/ws, and if we choose to run the run time model by "Run as Eclipse Application", then the workspace of the run time will be C:/ws/runtime-EclipseApplication. The problem is: I cannot find the plugin .jar file inside any sub directory of C:/ws

Can someone provide me with a hint ?

Thanks
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1075764 is a reply to message #1075256] Tue, 30 July 2013 02:32 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
On 2013-29-07 8:02, J A wrote:
> Or you can export into a jar, copy it into the plugins directory of the
> targeted Eclipse used to run DSL.

That is not recommended.
Use the update site method.

- henrik
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1075885 is a reply to message #1075764] Tue, 30 July 2013 09:15 Go to previous messageGo to next message
J A is currently offline J A
Messages: 31
Registered: July 2013
Member
Henrik Lindberg wrote on Mon, 29 July 2013 22:32
On 2013-29-07 8:02, J A wrote:

That is not recommended.
Use the update site method.

- henrik


Thanks.
Can you answer me in the case of "Run as Eclipse Application", where the .jar plugin file of the generating project is put in the workspace / source of the run time project ?
Thanks
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1076029 is a reply to message #1075885] Tue, 30 July 2013 14:40 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
On 2013-30-07 11:15, J A wrote:
> Henrik Lindberg wrote on Mon, 29 July 2013 22:32
>> On 2013-29-07 8:02, J A wrote:
>>
>> That is not recommended.
>> Use the update site method.
>>
>> - henrik
>
>
> Thanks.
> Can you answer me in the case of "Run as Eclipse Application", where the
> .jar plugin file of the generating project is put in the workspace /
> source of the run time project ?
> Thanks
>
You mean when running self-hosted? Why do you need to know where the
files are? What are you trying to do? Just make sure you have the things
you need in your launch config and run it. What is it that is not
working for you?

- henrik
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1076075 is a reply to message #1075155] Tue, 30 July 2013 17:13 Go to previous messageGo to next message
Björn Rellesch is currently offline Björn Rellesch
Messages: 36
Registered: January 2013
Member
Hello,

@ Christian Dietrich: This works. Thank you!
The followed website explains more precise what to do:
http://wiki.eclipse.org/Xtext/GettingStarted#Deployment

Greets Björn

[Updated on: Tue, 30 July 2013 17:14]

Report message to a moderator

Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1076174 is a reply to message #1076075] Tue, 30 July 2013 21:45 Go to previous messageGo to next message
J A is currently offline J A
Messages: 31
Registered: July 2013
Member
Björn Rellesch wrote on Tue, 30 July 2013 13:13
Hello,

@ Christian Dietrich: This works. Thank you!
The followed website explains more precise what to do:
http://wiki.eclipse.org/Xtext/GettingStarted#Deployment

Greets Björn



And here http://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin is a very easy-to-do tutorial on how to make an update site for your xtext plugin. I tried making the plugin using juno, and try to update it to a kepler. It does not work.

However a juno updating from a juno is fine

[Updated on: Tue, 30 July 2013 21:45]

Report message to a moderator

Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1076337 is a reply to message #1076174] Wed, 31 July 2013 07:41 Go to previous messageGo to next message
Björn Rellesch is currently offline Björn Rellesch
Messages: 36
Registered: January 2013
Member
Hi again,

now I have a plugin so I can use the editor.
But now I want to start the generator automatically when I save the file containing my DSL-Code(the same behaviour, when I use "Run As / Eclipse Application"). How can I achieve this?

I found this, but it is quite complex:
http://jevopisdeveloperblog.blogspot.de/2011/02/extract-xtext-project-wizard.html

Greets Björn

[Updated on: Wed, 31 July 2013 07:42]

Report message to a moderator

Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1076387 is a reply to message #1076337] Wed, 31 July 2013 09:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6385
Registered: July 2009
Senior Member
Hi this should work automatically (with test project having Xtext
nature and build automatically on)

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1077375 is a reply to message #1076387] Thu, 01 August 2013 16:04 Go to previous messageGo to next message
Björn Rellesch is currently offline Björn Rellesch
Messages: 36
Registered: January 2013
Member
Hi,

I've analyzed the Problem.
I use my own BuilderParticipant. I registered the class in my UIModule-Class.
If I comment the registration the generator is called during build.

But I need my own BuilderParticipant-class to modify the logic for gathering my DSL-files. How can I use the export as a plugin (as described above) and my BuildParticipant at the same time (to use the DSL in my everyday Eclipse including the generator, who works with a modified set of DSL-files)?

Greets Björn

[Updated on: Thu, 01 August 2013 16:05]

Report message to a moderator

Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1077381 is a reply to message #1077375] Thu, 01 August 2013 16:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6385
Registered: July 2009
Senior Member
Hi thus should work out if the box. I have no idea what goes wrong in
your case

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: How to run DSL-Editor in my common Eclipse-Workspace [message #1081490 is a reply to message #1077381] Wed, 07 August 2013 09:36 Go to previous message
Björn Rellesch is currently offline Björn Rellesch
Messages: 36
Registered: January 2013
Member
I haven't found the reason for my problem. So I moved the Functionality from my overridden BuilderParticipant to the Generator. That's ok for me. Greets Björn
Previous Topic:No EObjectDescription could be found in Scope Web.sitePermission for
Next Topic:calling XbaseCompiler 2.4 in the inferrer
Goto Forum:
  


Current Time: Thu Oct 23 20:37:17 GMT 2014

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

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