Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » project java --> +/- java
project java --> +/- java [message #1385793] Wed, 11 June 2014 09:04 Go to next message
Michele Di Biase is currently offline Michele Di BiaseFriend
Messages: 11
Registered: June 2014
Junior Member
hello
I have a problem with a project...
I have a project that transforms a code in java code + / - java.
the project is executed through the application of eclipse (new configuration).
Now I have to submit this project to a web service. I can recall this application without having to use the newconfiguration eclipse?
and how is it spread?
Thank you.
mick
Re: project java --> +/- java [message #1385794 is a reply to message #1385793] Wed, 11 June 2014 09:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

can you please give more information on how this releates to Xtext and what you are exactly doing


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: project java --> +/- java [message #1385800 is a reply to message #1385794] Wed, 11 June 2014 09:47 Go to previous messageGo to next message
Michele Di Biase is currently offline Michele Di BiaseFriend
Messages: 11
Registered: June 2014
Junior Member
the project is built starting with the plugin xtext.
Once you have created the grammar and the artifact, you execute the project using Run As -> new configuration, then you open a new application eclipse. In the Java code editor is inserted and once saved file will be created programm.html (in the runtime-New_configuration) that will have its own output that we wish to format + / - java.

Now my part is to take this project (without changing any part) and insert it into a web service.
my problem is:
- When I'm on the web and insert the java code in recognizing text, how do I invoke the transform xtext application without writing code in Eclipse?
- Should refer to the entire project or can I export the application format .jar file and import it into the new project?
sorry if maybe I was not clear but they are just starting out with Xtext.
thanks
Re: project java --> +/- java [message #1385803 is a reply to message #1385800] Wed, 11 June 2014 10:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Do you use igenerator?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: project java --> +/- java [message #1385804 is a reply to message #1385803] Wed, 11 June 2014 10:31 Go to previous messageGo to next message
Michele Di Biase is currently offline Michele Di BiaseFriend
Messages: 11
Registered: June 2014
Junior Member
yes .. but I do not know if I'm wrong, what should I pass as input parameters to the method doGenerate? java code to input?
Re: project java --> +/- java [message #1385806 is a reply to message #1385804] Wed, 11 June 2014 10:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

you can change the language workflow.
there is a GeneratorFragment. you can tell it to generate a java main.
once you have run this java main once
you can use the export -> java -> junnable jar file wizard to create a all in one jar.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: project java --> +/- java [message #1385809 is a reply to message #1385806] Wed, 11 June 2014 10:54 Go to previous messageGo to next message
Michele Di Biase is currently offline Michele Di BiaseFriend
Messages: 11
Registered: June 2014
Junior Member
but then once the file is exported in runnable jar,
I simply recall. jar file in my web service?
If you have a link to where this is an example of this kind?
thanks and sorry again
Re: project java --> +/- java [message #1385812 is a reply to message #1385809] Wed, 11 June 2014 11:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
No example simply give it a try

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: project java --> +/- java [message #1385819 is a reply to message #1385812] Wed, 11 June 2014 12:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
P.S:

the main is of course only a starting point.

http://wiki.eclipse.org/Xtext/FAQ#How_do_I_load_my_model_in_a_standalone_Java_application.C2.A0.3F


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: project java --> +/- java [message #1385825 is a reply to message #1385819] Wed, 11 June 2014 12:31 Go to previous message
Michele Di Biase is currently offline Michele Di BiaseFriend
Messages: 11
Registered: June 2014
Junior Member
thanks
Previous Topic:xtext grammar import ATL metamodel
Next Topic:Antlr update breaks workflow
Goto Forum:
  


Current Time: Fri Mar 29 08:02:23 GMT 2024

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

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

Back to the top