|
|
|
|
|
Re: FXML include didn't bring the css along [message #1727066 is a reply to message #1726980] |
Fri, 18 March 2016 14:37 |
John Bodkin Messages: 39 Registered: November 2011 |
Member |
|
|
I'm still having the issue with the css as described above but I did figure out the controller issue:
John Bodkin wrote on Thu, 17 March 2016 19:29
Also: The documentation on https://wiki.eclipse.org/Efxclipse/Tooling/FXGraph#Referencing_other_FXGraph_files also states:
"Furthermore, the WorldController can be referenced from the HelloWorldController using the implied worldController variable: ". This is not working for me. The variable for WorldController in what would be the equivalent of HelloWorldController is never initialized and gives me a NullPointerException. I've attached another project archive that demonstrates this issue. Is this functionality no longer included in the latest version of e(fx)clipse?
The documentation is not 100% accurate or it is accurate and I just misunderstood it . I was able to get the included FXML controller to initialize by naming the variable differently.
If you do an include in your FXGraph like the following:
include Contribution as world
and that contributions controller class is named ContributionController the "implied variable" is not contributionController the "implied variable" is "worldController"
[Updated on: Fri, 18 March 2016 14:39] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds