Skip to main content



      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 15:25 Go to next message
Eclipse UserFriend
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 215 times)
Re: Xtext' editor embedded in a Java Application [message #1299379 is a reply to message #1299147] Wed, 16 April 2014 19:00 Go to previous messageGo to next message
Eclipse UserFriend
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 14:36 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:59:26 EDT 2025

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

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

Back to the top