FXML - Java Compiler [message #1239158] |
Mon, 03 February 2014 14:13 |
|
Hi Tom!
I was checking your sample project for FXML - Java Compiler because definitely that's something we really need. The gained speed between fxml and java on low power devices is considerable!.
However, at least on my computer. The java generated receive a wrong package name: "package \demo;" and therefore when ant tries to compile with javac, it fails:
[javac] Compiling 2 source files to C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\classes
[javac] C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Login.java:1: error: illegal character: '\'
[javac] package \demo;
[javac] ^
[javac] C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Login.java:1: error: class, interface, or enum expected
[javac] package \demo;
[javac] ^
[javac] C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Profile.java:1: error: illegal character: '\'
[javac] package \demo;
[javac] ^
[javac] C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Profile.java:1: error: class, interface, or enum expected
[javac] package \demo;
[javac] ^
[javac] 4 errors
I'm using the argument: -Dbuild.compiler=javac1.7
Because otherwise I have a compiler not found javac1.8
At the moment I'm using ant 1.8.4
And my second question.
Assuming that I have the generated java and .class: I see that are under the folder build\classes\demo\
As far as I understood from your blog post, the ExtendedFXMLLoader.java will grab from the build folder the binary class files right? So basically in my application I should run the Ant script and in the Part.java use the ExtendedFXMLLoader instead of the FXMLLoader.
Is this open sourced already? we pointed our project today to the efxclipse 0.9 release but I don¡t see there the FXML-compiler classes. Perhaps I'm missing something in the target url (http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site/) because I cannot see the org.fx.eclipse.fxml bundle
Thanks!!
|
|
|
Re: FXML - Java Compiler [message #1239177 is a reply to message #1239158] |
Mon, 03 February 2014 15:06 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
a) yes everything is opensourced
- ExtendedFXMLLoader is part of "org.eclipse.fx.core" which is part
of the runtime p2 repo
- The compiler is a build / time tool so it is *not* part of the
runtime p2 repo - it is found in "org.eclipse.fx.ide.fxml.compiler"
b) you get the compiler itself not as part of an update-site but as an
extra download [1]
c) Yes you simply replace the FXMLLoader through calls to
ExtendedFXMLLoader - but it will not search an extra classpath but
simply the classpath of your project so you need to make sure that
the generated .class-Files are packaged
In my sample ant-script you'll see that this is a 2 fold process:
* compile the project source using javac
* translate the FXML => Java-Files with the "compiler"
* compile the generated FXML-Files using javac
The reason for this 2 step process is that the "fxml-compiler" needs
e.g. the control to find out if it still has to use reflection to
access fields
d) On your compilation problem - it somehow looks like there's a "\" to
less stripped when calculating the path. Can you please give the
compiler from the release a try
e) Note that there are still gaps in the compiler that have to be
closed - e.g. the possibility to deal with include-directives, ... .
So if you come across any problems please file bug reports
f) -Dbuild.compiler=javac1.7 - yes this is a problem of a too old ANT
shipped with Eclipse. It will be fixed with Luna.
Tom
[1]http://download.eclipse.org/efxclipse/compiler-released/0.9.0/org.eclipse.fx.fxml.compiler_0.9.0.jar
On 03.02.14 15:13, Pablo Gomez wrote:
> Hi Tom!
>
> I was checking your sample project for FXML - Java Compiler because
> definitely that's something we really need. The gained speed between
> fxml and java on low power devices is considerable!.
>
> However, at least on my computer. The java generated receive a wrong
> package name: "package \demo;" and therefore when ant tries to compile
> with javac, it fails:
>
>
>
> [javac] Compiling 2 source files to
> C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\classes
>
> [javac]
> C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Login.java:1:
> error: illegal character: '\'
> [javac] package \demo;
> [javac] ^
> [javac]
> C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Login.java:1:
> error: class, interface, or enum expected
> [javac] package \demo;
> [javac] ^
> [javac]
> C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Profile.java:1:
> error: illegal character: '\'
> [javac] package \demo;
> [javac] ^
> [javac]
> C:\Users\gomez\workspaces\eclipse\ws_kepler_laboratory\CompilerTest\build\gen-src\demo\Profile.java:1:
> error: class, interface, or enum expected
> [javac] package \demo;
> [javac] ^
> [javac] 4 errors
>
>
>
> I'm using the argument: -Dbuild.compiler=javac1.7
> Because otherwise I have a compiler not found javac1.8
> At the moment I'm using ant 1.8.4
>
> And my second question.
>
> Assuming that I have the generated java and .class: I see that are under
> the folder build\classes\demo\
>
> As far as I understood from your blog post, the ExtendedFXMLLoader.java
> will grab from the build folder the binary class files right? So
> basically in my application I should run the Ant script and in the
> Part.java use the ExtendedFXMLLoader instead of the FXMLLoader.
>
>
> Is this open sourced already? we pointed our project today to the
> efxclipse 0.9 release but I don¡t see there the FXML-compiler classes.
> Perhaps I'm missing something in the target url
> (http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site/)
> because I cannot see the org.fx.eclipse.fxml bundle
>
> Thanks!!
>
|
|
|
Re: FXML - Java Compiler [message #1239479 is a reply to message #1239177] |
Tue, 04 February 2014 09:39 |
|
ok clear thanks,
I have now another question, in the class where we load the parts we are using the FXMLLoaderFactory as follows
@PostConstruct
public void init(BorderPane pane, @FXMLLoader FXMLLoaderFactory factory)
FXMLBuilder<Node> builder = factory.loadRequestorRelative(FXML_RESOURCE_NAME);
pane.setCenter(builder.load());{
}
Is it the ExtendedFXMLLoader somehow in the context or should we, for each part, to create an new instance?
best
|
|
|
|
Re: FXML - Java Compiler [message #1239548 is a reply to message #1239487] |
Tue, 04 February 2014 12:43 |
|
ok I'll file a feature request.
Now I'm facing some issues regarding compilation. Below our ant file:
<project default="test">
<path id="fxcompile">
<filelist>
<file name="target/classes"/>
<file name="lib/org.eclipse.fx.fxml.compiler_0.9.0.jar"/>
</filelist>
</path>
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<path id="buildpath">
<filelist>
<file name="target/classes"/>
<file name="lib/org.eclipse.fx.fxml.compiler_0.9.0.jar"/>
</filelist>
</path>
<target name="test">
<delete dir="build" />
<mkdir dir="build/classes"/>
<taskdef name="fxml-compiler" classpathref="fxcompile" classname="org.eclipse.fx.ide.fxml.compiler.ant.FXMLCompilerTask" />
<javac srcdir="src" destdir="target/classes" classpathref="buildpath"></javac>
<fxml-compiler sourcedir="src" destdir="target/gen-src"/>
<javac srcdir="target/gen-src" destdir="target/classes" classpathref="buildpath"></javac>
</target>
</project>
At first javac was failing, firing erros like the one below:
javac] C:\Users\gomez\workspaces\subversion\demo\src\demo\part\a\header\ControllerHeaderA.java:47: error: cannot find symbol
[javac] private static Logger logger = LoggerFactory.getLogger(ControllerHeaderA.class);
[javac] ^
[javac] symbol: class Logger
[javac] location: class ControllerHeaderA
So I give a try removing the javac as well as the remove and mkdir for the target folder ant tasks. So I now I have ensure that I have compiled all clases with eclipse - what javac task is intended to do- and I have launch the ant build. However, I get the following problem:
Buildfile: C:\Users\gomez\workspaces\subversion\demo\build.xml
Trying to override old definition of task javac
test:
[fxml-compiler] Compiling C:\Users\gomez\workspaces\subversion\demo\src\demo\part\a\footer\FooterA.fxml
[fxml-compiler] log4j:WARN No appenders could be found for logger (org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory).
[fxml-compiler] log4j:WARN Please initialize the log4j system properly.
BUILD FAILED
C:\Users\gomez\workspaces\subversion\demo\build.xml:17: java.lang.NoClassDefFoundError: org/slf4j/Logger
Before I was getting a NullPointer exception. But, for some reason I don't manage to get it again and I only receive this error related to the slf4j. In our project we are using slf4j but I don't see any reference to that class in the FXML. I wanted to debug inside the compiler but I'm not sure what is the java class, the source from this one org.eclipse.fx.ide.fxml.compiler.ant.FXMLCompilerTask I don't see it.
[Updated on: Tue, 04 February 2014 15:46] Report message to a moderator
|
|
|
|
|
Re: FXML - Java Compiler [message #1239618 is a reply to message #1239554] |
Tue, 04 February 2014 15:57 |
|
The project I'm working with is OSGi, so we have multiple bundles and therefore multiple 'bin' folders. So in our case I guess I should add al dependent binaries to the ant.
What I don't see at the moment is why it requires access to non javafx classes or classes that are not referenced by the FXML at all.
Buildfile: C:\workspaces\demo\build.xml
convertToJava:
[fxml-compiler] Compiling C:\src\demo\part\a\footer\FooterA.fxml
[fxml-compiler] log4j:WARN No appenders could be found for logger (org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory).
[fxml-compiler] log4j:WARN Please initialize the log4j system properly.
BUILD FAILED
C:\workspaces\subversion\demo\build.xml:13: java.lang.NoClassDefFoundError: org/eclipse/e4/ui/model/application/ui/basic/MPart
Total time: 2 seconds
actually that FooterA.fxml is pure javafx class
this is my ant at the moment:
<project default="convertToJava">
<path id="fxcompile">
<filelist>
<file name="bin"/>
<file name="C:/workspaces/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.fx.core_0.9.0.201401250701.jar"/>
<file name="C:/workspaces/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.slf4j.api_1.7.2.v20121108-1250.jar"/> <file name="target/classes"/>
<file name="lib/org.eclipse.fx.fxml.compiler_0.9.0.jar"/>
</filelist>
</path>
<target name="convertToJava">
<taskdef name="fxml-compiler" classpathref="fxcompile" classname="org.eclipse.fx.ide.fxml.compiler.ant.FXMLCompilerTask" />
<fxml-compiler sourcedir="src" destdir="target/src-gen"/>
</target>
</project>
I know that it is not good to grab jar from that .metadata folder, but at the moment I'd like to make simply one compilation.
|
|
|
|
Re: FXML - Java Compiler [message #1239950 is a reply to message #1239639] |
Wed, 05 February 2014 11:23 |
|
Quote:
The downloaded compiler is a repackageing of many different
dependencies! You can't simply use the one found in your bundles.
Tom
I think I have missunderstood you, do you mean the FXGraphCompiler?
Basically the compiler library downloaded from the link you have provided I have added it to the buildpath of the project as well as to the ant file:
<file name="lib/org.eclipse.fx.fxml.compiler_0.9.0.jar"/>
What I'm not sure whether is necessary that the compiler task requires as many dependencies as dependencies has the Controller of the fxml. I think this should not be necessary because to generate a java out of a fxml, processing the controller implementation I think is not useful and should not be done. For instance if in the fxml declaration we have:
fx:controller="footer.ControllerFooterA"
This will provoke the need in the compiler task to add as many dependencies as the controller needs. For instance if in the controller I have
The compiler task will require to add the library
<file name="org.eclipse.e4.ui.model.workbench....jar"/>
and so on.
So I have added these dependencies from my Footer.fxml and now it has been generated succesfully.
However, now I got null pointer exception generating another file. After running the ant in debug mode, I have noticed that is because the Task is not able to find a custom JavaFX control that is provided by one of our project bundles and it is used in the fxml, I added it and it worked out. In any case I assume that a ClassNotFound should be thrown instead of a NullPointer
BUILD FAILED
C:\demo\build.xml:19: java.lang.NullPointerException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: java.lang.NullPointerException
at org.eclipse.xtext.common.types.access.impl.ClassNameUtil.normalizeClassName(ClassNameUtil.java:16)
at org.eclipse.xtext.common.types.access.impl.ClassFinder.forName(ClassFinder.java:57)
at org.eclipse.xtext.common.types.access.impl.ClasspathTypeProvider.findTypeByName(ClasspathTypeProvider.java:109)
at org.eclipse.fx.ide.fxml.compiler.FXMLSaxHandler.startElement(FXMLSaxHandler.java:198)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:355)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2770)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
at org.eclipse.fx.ide.fxml.compiler.FXGraphCompiler.compileFXML(FXGraphCompiler.java:98)
at org.eclipse.fx.ide.fxml.compiler.FXGraphCompiler.compile(FXGraphCompiler.java:138)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask$1.call(CompilerTask.java:85)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask$FileFinder.visitFile(CompilerTask.java:109)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask$FileFinder.visitFile(CompilerTask.java:1)
at java.nio.file.Files.walkFileTree(Files.java:2667)
at java.nio.file.Files.walkFileTree(Files.java:2739)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask.execute(CompilerTask.java:79)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 10 more
Total time: 3 seconds
best
Pablo
|
|
|
|
|
Re: FXML - Java Compiler [message #1240365 is a reply to message #1239958] |
Thu, 06 February 2014 09:51 |
|
I'm having the following issue with the following fxml (I have simplified the fxml, so is easy to read and the problem still persists):
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.collections.*?>
<?import javafx.scene.chart.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<AnchorPane fx:id="rootElem" id="rootElem" maxHeight="600.0" maxWidth="800.0" minHeight="600.0" minWidth="800.0" prefHeight="600.0" prefWidth="800.0" xmlns:fx="http://javafx.com/fxml">
<children>
<TitledPane animated="false" layoutX="26.0" layoutY="294.0" minWidth="226.0" prefHeight="273.0" prefWidth="236.0" text="Groups">
<content>
<AnchorPane id="Content" minHeight="0.0" minWidth="0.0" prefHeight="223.0" prefWidth="226.0">
<children>
<TitledPane animated="false" layoutX="10.0" layoutY="152.0" minWidth="151.0" prefHeight="90.0" prefWidth="200.0" text="Boolean Group">
<content>
<AnchorPane id="Content" minHeight="0.0" minWidth="0.0" prefHeight="73.0" prefWidth="148.0">
<children>
<CheckBox id="CheckBox1" layoutX="23.0" layoutY="8.0" mnemonicParsing="false" text="CheckBox1" />
<CheckBox id="CheckBox2" layoutX="23.0" layoutY="36.0" mnemonicParsing="false" text="CheckBox2" />
</children>
</AnchorPane>
</content>
</TitledPane>
</children>
</AnchorPane>
</content>
</TitledPane>
</children>
</AnchorPane>
Exception by the compiler task:
build.xml:32: java.lang.ClassCastException: org.eclipse.fx.ide.fxgraph.fXGraph.impl.ElementImpl cannot be cast to org.eclipse.fx.ide.fxgraph.fXGraph.Property
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:452)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:139)
Caused by: java.lang.ClassCastException: org.eclipse.fx.ide.fxgraph.fXGraph.impl.ElementImpl cannot be cast to org.eclipse.fx.ide.fxgraph.fXGraph.Property
at org.eclipse.fx.ide.fxml.compiler.FXMLSaxHandler.startElement(FXMLSaxHandler.java:184)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.fx.ide.fxml.compiler.FXGraphCompiler.compileFXML(FXGraphCompiler.java:98)
at org.eclipse.fx.ide.fxml.compiler.FXGraphCompiler.compile(FXGraphCompiler.java:138)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask$1.call(CompilerTask.java:85)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask$FileFinder.visitFile(CompilerTask.java:109)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask$FileFinder.visitFile(CompilerTask.java:1)
at java.nio.file.Files.walkFileTree(Unknown Source)
at java.nio.file.Files.walkFileTree(Unknown Source)
at org.eclipse.fx.ide.fxml.compiler.ant.CompilerTask.execute(CompilerTask.java:79)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 10 more
Can I help somehow? I'm very interested in this feature!
At the moment I'm using Eclipse Luna M5 with efxclipse and compiler 1.0.0
[Updated on: Thu, 06 February 2014 09:51] Report message to a moderator
|
|
|
|
|
Re: FXML - Java Compiler [message #1249477 is a reply to message #1240382] |
Tue, 18 February 2014 09:37 |
|
Hi Tom!
any progress in the compiler? also I'm wondering how it is planned to manage the language translations or if the compiler already does it. - eg. fxml tag: text=%key - Does the generated code have access to the ResourceBundle so that it retrieves the appropiate language value given the key in runtime? Or on the contrary multiple java files are generated so that the extended loader will load the apropiate one? e.g. one for each available language. Or another alternative?
best
Pablo
|
|
|
|
|
Re: FXML - Java Compiler [message #1284318 is a reply to message #1249647] |
Fri, 04 April 2014 10:35 |
|
Hi Tom!
I was about to try the last nightly build of the compiler. But now I'm having this dependency issue:
C:\app\test\build.xml:32: java.lang.NoClassDefFoundError: org/eclipse/xtext/xbase/services/XbaseGrammarAccess$OpPostfixElements
Perhaps you have a newer build.xml so I'm using an old version so I might now missing something
Thx!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06400 seconds