As Fx2.0 is successfully released, some of us need to migrate their current project from javaFX 1.3.1 to 2.0.
Depending of the size of the project (and mine is quite huge), the work load may be critical.
We heard about a tool called "FxTranslator" that Oracle team may release.
The question is : is it true ? what are the functionnalities of the tool ? is there a milestone for release ?
Thanks for help.
I am in the same situation. However I am placing my hopes with Visage. The current version of the Java language doesn't seem too congruent with JavaFX Script. I would imagine most legacy code uses 'functions that are variables' (closures) quite liberallly, each of which would translate into quite a messy interface call (reification of the strategy pattern).
In my opinion using FxTranslator will become a better option when Java 8 comes out (that's the one with closures right?) which isn't until 2013? Even then as long as Visage is still around (even growing in popularity?) I would be very happy to stick with it.
I read previously that FxTranslator was being written in Scala. Wouldn't the writers of the tool feel a little conflicted and think that Scala would be a better target? For that case ScalaFX exists.
So I'm holding out a couple of other hopes rather than the straight JavaFX Script -> Java one..
I'm sorry to say we have no tool to help with the migration. Our experience from migrating the JavaFX Library and samples is that there wasn't really an easy solution -- even the migration assistant that was written was very incomplete. Some folks found it very useful, but I just did it by hand.
It might be okay to tranlate a demo by hand. However my company has written so much code in JavaFX 1.3 that it would be (in practical terms) impossible to do the translation by hand. Two questions. What is your feeling as to the best way for us to proceed? And (in case it is different) what is the official Oracle recommended way of performing the translation?
You're talking about a migration assistant: could you give us more information about it ? where can we find it ?
Sounds, as you mentioned, that it can be helpful even if incomplete.
Any chance you could send me the FxTranslator helper you've created?
I'm writing a blog post on migrating from javafx 1.3 javafxscript to javafx 2.0 java language, and that would be really cool to add.
Cheers, thanks in advance,
Wish I could, but unfortunately we cannot send it along (actually, I don't even have the code on hand, didn't write it (Eamonn did) and it would need to get legal approve to open source it, and it probably doesn't even compile or work anymore because the platform has change significantly since last December).