This site requires JavaScript, please enable it in your browser!
Greenfoot back
mark.hayes
mark.hayes wrote ...

2018/6/1

Toggle between Java & Stride

mark.hayes mark.hayes

2018/6/1

#
Is it possible? It seems I was able to do this with v3.1 but can no longer do it. Would like to convert existing projects to Stride.
davmac davmac

2018/6/1

#
In Greenfoot 3.1.0 (the latest version) you can right-click a class in the diagram and choose to convert it to Java or Stride. You have to do this class by class, there is no simple way to do it for the whole project. I'm not sure if this possible in earlier versions. Java-to-Stride support was added in version 3.1.0. Stride support (generally) was added in version 3.0.
mark.hayes mark.hayes

2018/6/3

#
OK, that works. Thank you. From what I recall, was there not a button at the top-right corner of the editor which toggled the source code between java and stride? Perhaps I am mistaken. BTW, I noticed that stride does not support the ternary operator. Is there is list somewhere of java features which are not supported in stride? Thanks.
davmac davmac

2018/6/5

#
Sorry for the late answer. You can select a Java preview from the "view" menu in the editor, which doesn't do a permanent conversion but displays equivalent Java to the current Stride source (you cannot edit it). There's no list of java features not in Stride. A few features that are (or at least were not at some stage) supported are: lambdas, anonymous inner classes, annotations, floating point literals beginning with '.', pre- and post-increment/decrement operators, three-part "for" loops (Stride only has ranged-based for loops).
danpost danpost

2018/6/5

#
davmac wrote...
There's no list of java features not in Stride. A few features that are not (or at least were not at some stage) supported are: lambdas, anonymous inner classes, annotations, floating point literals beginning with '.', pre- and post-increment/decrement operators, three-part "for" loops (Stride only has ranged-based for loops).
was meant.
mark.hayes mark.hayes

2018/6/7

#
Many thanks.
You need to login to post a reply.