About mixing and matching JDT and JavaFX

What is the result of mixing JDT and JavaFX into one project? Right you get an Java-IDE πŸ™‚ You don’t believe me? Then watch this short video.

Freaking cool but how did I managed to get this work. First all of the whole thing is not a fake. I used different OpenSource technologies to make this work.

  1. JDT-Core: Correct JDT-Core is the same you use everyday in your eclipse, it provides you the incremental compiler, launch and debug support, …
  2. JavaFX: Right i used FX as the UI technology – it’s an experiment
  3. e4-core: For DI I used e4 stuff
  4. Equinox: Correct the whole thing is mixed together using OSGi
  5. e(fx)clipse-runtime: To make JavaFX run in OSGi, I used stuff from my e(fx)clipse project

Finally the big mystery where the hell is this nice editor coming from? First of JavaFX has no such nice control as SWTs StyledText but what it has is a Webkit-Browser and Java/JavaScript integration. So guess what the the editor you are seeing there is the one developed by the Orion project at Eclipse.org – no joke!

Packaging up the whole thing into a product without JavaFX the size is ~25MB – if packaging JavaFX so that you get a “crossplatform-no-prerequist” product the size would be ~92MB.

This entry was posted in Uncategorized. Bookmark the permalink.

16 Responses to About mixing and matching JDT and JavaFX

  1. Lars Vogel says:

    You doing scary things these days. πŸ™‚

    Serious: this is very much impressive.

  2. You, my friend, are on to something. What a great idea to use the webview this way.

  3. So you are editing code on a browser hosted on a JavaFX widget and taking the code back to jdt-core to compile and run? Looks like black magic πŸ™‚

    Nice work Tom.

  4. David Carver says:

    Now if we could integrate it and the work that Dough Schaefer started.

    • Tom Schindl says:

      Not sure I follow. So what work has Doug started?

      • Not sure what Dave is talking about. This trumps SWT on JavaFX which we both agree would be very difficult. I’m coming to the mind that we need to dump SWT in it’s entirety and start the UI from scratch. But that’s a huge job that is likely impossible.

  5. Awesome! πŸ™‚ How does the communication between browser and JDT work? Something comparable to BrowserFunction in SWT? What about the overhead when having to react on every single character typed?

  6. Leo Roos says:

    Looks interesting, but I must admit, that I don’t see the implications, which seam to be obvious to everyone else.
    Could you perhaps elaborate on what might develop from this “proof of concept”.

    • Tom Schindl says:

      There are multiple interesting things going on here. First of suddenly JavaFX has a rich text editor. Second thing is that it shows how powerful and well designed Eclipse Technologies are and third this is a prototype of a new lightweight Java-IDE.

  7. Not Relevant says:

    Is it possible to have a SWT implementation using JavaFX?

  8. Daniel Zimmermann says:

    I find it not scary but impressive! πŸ˜€

    And I envy you to get all the stuff mixed together so well and I grow to come to the conclusion, that I’m a poor developer compared to you!

  9. Pingback: Eclipse Techs on steroids | Tomsondev Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.