|
Re: Embed Eclipse in JavaFX [message #1701850 is a reply to message #1701778] |
Thu, 16 July 2015 08:24 |
Thomas Schindl 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 |
Thomas Schindl 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.
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03130 seconds