Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Embed Eclipse in JavaFX
Embed Eclipse in JavaFX [message #1701778] Wed, 15 July 2015 14:24 Go to next message
Steven Elliott is currently offline Steven ElliottFriend
Messages: 2
Registered: July 2015
Junior Member
We are actually looking to do something different - embed an Eclipse view into a JavaFX application. We would like to be able to use Eclipse and plugins as an editor for specific languages (e.g. Java, DRL, Mvel, etc.). We are currently using a WebView with an HTML editor, Ace, which has some performance and compat. side effects.

Any pointers to resources that have embedded Eclipse into JavaFX would be appreciated.
Re: Embed Eclipse in JavaFX [message #1701850 is a reply to message #1701778] Thu, 16 July 2015 08:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can not embed SWT (heavyweight toolkit) into JavaFX (lightweight
toolkit) so it is impossible to embed an Eclipse-View into it - so I'm
sorry for the bad news.

Still I have good news: e(fx)clipse has components (some of them not yet
released as API) allowing you to implemented editors in pure JavaFX with
the help of (Eclipse-Text-Frame which is the same as used by the Eclipse
IDE) and other core components of eclipse like jdt.core, ... .

See
*
http://tomsondev.bestsolution.at/2015/07/08/eclipse-democamp-season-javafx-smart-code-editors-eg-for-google-dart/
where I implement a dart editor in JavaFX

*
http://tomsondev.bestsolution.at/2015/02/17/compensator-a-code-editor-and-a-code-dev-environment-written-in-javafx/
where I implement a simple IDE with Java, JavaScript and git support.


As you can see from the video recording in the first link it is damn
easy to get (lexical) syntax highlighting because you can use the DSL to
describe your language. Semantic highlighting is on our list of features
we'd love to implement but we require funding or someone contributing
the solution.

Generally speaking you can implement editors for fairly any language,
connect them to headless services, like JDT, Xtext, ... and if you
really want to you *don't* have to use OSGi although things get a lot
easier if you use e4 as the application framework because all the
wireing is done for you already!

I've been working on those components in the last few days and hope to
have some cool news and tutorial ready end of the month. We'd naturally
happy if you'd be interested in joining the fun, funding some of its
development or hiring us to help you get started.

Tom

On 16.07.15 03:52, Steven Elliott wrote:
> We are actually looking to do something different - embed an Eclipse
> view into a JavaFX application. We would like to be able to use Eclipse
> and plugins as an editor for specific languages (e.g. Java, DRL, Mvel,
> etc.). We are currently using a WebView with an HTML editor, Ace, which
> has some performance and compat. side effects.
>
> Any pointers to resources that have embedded Eclipse into JavaFX would
> be appreciated.
Re: Embed Eclipse in JavaFX [message #1702941 is a reply to message #1701850] Mon, 27 July 2015 13:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
If you are still interested in this topic then
http://tomsondev.bestsolution.at/2015/07/27/developing-a-source-code-editor-in-javafx-on-the-eclipse-4-application-platform/
is interesting to you.

Tom

On 16.07.15 10:24, Tom Schindl wrote:
> You can not embed SWT (heavyweight toolkit) into JavaFX (lightweight
> toolkit) so it is impossible to embed an Eclipse-View into it - so I'm
> sorry for the bad news.
>
> Still I have good news: e(fx)clipse has components (some of them not yet
> released as API) allowing you to implemented editors in pure JavaFX with
> the help of (Eclipse-Text-Frame which is the same as used by the Eclipse
> IDE) and other core components of eclipse like jdt.core, ... .
>
> See
> *
> http://tomsondev.bestsolution.at/2015/07/08/eclipse-democamp-season-javafx-smart-code-editors-eg-for-google-dart/
> where I implement a dart editor in JavaFX
>
> *
> http://tomsondev.bestsolution.at/2015/02/17/compensator-a-code-editor-and-a-code-dev-environment-written-in-javafx/
> where I implement a simple IDE with Java, JavaScript and git support.
>
>
> As you can see from the video recording in the first link it is damn
> easy to get (lexical) syntax highlighting because you can use the DSL to
> describe your language. Semantic highlighting is on our list of features
> we'd love to implement but we require funding or someone contributing
> the solution.
>
> Generally speaking you can implement editors for fairly any language,
> connect them to headless services, like JDT, Xtext, ... and if you
> really want to you *don't* have to use OSGi although things get a lot
> easier if you use e4 as the application framework because all the
> wireing is done for you already!
>
> I've been working on those components in the last few days and hope to
> have some cool news and tutorial ready end of the month. We'd naturally
> happy if you'd be interested in joining the fun, funding some of its
> development or hiring us to help you get started.
>
> Tom
>
> On 16.07.15 03:52, Steven Elliott wrote:
>> We are actually looking to do something different - embed an Eclipse
>> view into a JavaFX application. We would like to be able to use Eclipse
>> and plugins as an editor for specific languages (e.g. Java, DRL, Mvel,
>> etc.). We are currently using a WebView with an HTML editor, Ace, which
>> has some performance and compat. side effects.
>>
>> Any pointers to resources that have embedded Eclipse into JavaFX would
>> be appreciated.
>
Re: Embed Eclipse in JavaFX [message #1702957 is a reply to message #1702941] Mon, 27 July 2015 14:45 Go to previous messageGo to next message
Steven Elliott is currently offline Steven ElliottFriend
Messages: 2
Registered: July 2015
Junior Member
Thanks Tom for you quick and useful replies. I will take a look at the latest link and get back. My takeaway from your initial response was the best approach was to do this in the WebkitView using a javascript client. My hope was to be able to use the Eclipse plugin not only because it had quite a bit of work done but as well we could have contributed back to the project any improvements we would make.

Instead we are using Ace and WebkitView because of time constraints.

I don't generally use JavaFX (as you could tell by my initial post) and this is a bit of a one off project but am glad to see not only has it become a more viable framework but there are developers such as yourself who are contributing back.

Like I said I will read the links you have provided and get back.

Thanks again.
Re: Embed Eclipse in JavaFX [message #1702978 is a reply to message #1702957] Mon, 27 July 2015 16:34 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The questions is what from the plug-in you could have reused, as you see
reusing core stuff is fairy easy.

Tom

On 27.07.15 16:45, Steven Elliott wrote:
> Thanks Tom for you quick and useful replies. I will take a look at the
> latest link and get back. My takeaway from your initial response was
> the best approach was to do this in the WebkitView using a javascript
> client. My hope was to be able to use the Eclipse plugin not only
> because it had quite a bit of work done but as well we could have
> contributed back to the project any improvements we would make.
>
> Instead we are using Ace and WebkitView because of time constraints.
>
> I don't generally use JavaFX (as you could tell by my initial post) and
> this is a bit of a one off project but am glad to see not only has it
> become a more viable framework but there are developers such as yourself
> who are contributing back.
>
> Like I said I will read the links you have provided and get back.
>
> Thanks again.
Previous Topic:e(fx) and GUI-Testing
Next Topic:Encoding issue in properties files generated with l10n tooling
Goto Forum:
  


Current Time: Fri Jan 17 19:23:27 GMT 2025

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

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

Back to the top