Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext' editor embedded in a Java Application
Xtext' editor embedded in a Java Application [message #1299147] Wed, 16 April 2014 19:25 Go to next message
Cristiano Politowski is currently offline Cristiano PolitowskiFriend
Messages: 11
Registered: February 2014
Location: Brasil
Junior Member
Hi guys!

Is there a way to integrate the Editor generated by Xtext, with syntax highlighting and all features, with a Java application? Without using eclipse?

I was searching about this and found something about generate a Eclipse Product. But, what I have is a Java Application and my editor. I want to join them providing just the editor and a button to run the application.

Something like the image attached.




Thanks in advance.
  • Attachment: prototipo.png
    (Size: 16.63KB, Downloaded 197 times)
Re: Xtext' editor embedded in a Java Application [message #1299379 is a reply to message #1299147] Wed, 16 April 2014 23:00 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2014-16-04 21:25, Cristiano Politowski wrote:
> Hi guys!
>
> Is there a way to integrate the Editor generated by Xtext, with syntax highlighting and all features, with a Java application? Without using eclipse?
>
Xtext generates an editor that is based on the Eclipse framework, so the
answer is no, it will not function unless there is an Eclipse runtime.
(It does not have to be the full IDE though - see below).

> I was searching about this and found something about generate a Eclipse Product. But, what I have is a Java Application and my editor. I want to join them providing just the editor and a button to run the application.
>
You can create a product based on Eclipse that only includes what you
want (i.e. you do not need Java, and a bunch of other things).
puppetlabs / geppetto @ github is such a packaging of a product based on
Eclipse. You cannot however plug such a thing into another editor.

If you already have an application / editor, you can use Xtext to
generate the "headless" part, and then implement the editing support
yourself.

If you are willing to open up an external executable to do the editing,
I suggest you go for the packaged product based on Eclipse. That will
save you a ton of time.

- henrik
Re: Xtext' editor embedded in a Java Application [message #1300658 is a reply to message #1299379] Thu, 17 April 2014 18:36 Go to previous message
Cristiano Politowski is currently offline Cristiano PolitowskiFriend
Messages: 11
Registered: February 2014
Location: Brasil
Junior Member
Great answer, thank you very much.

I'll try to separate the concerns: editor and application. Also, I'll try export a Eclipse Product.



Hug!
Previous Topic:Xtend JUnit test in domainmodel example stop running
Next Topic:numeric representation too big for Integer.
Goto Forum:
  


Current Time: Fri Apr 19 05:34:32 GMT 2024

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

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

Back to the top