Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Tooling to create JavaFX Beans?
Tooling to create JavaFX Beans? [message #1385955] Thu, 12 June 2014 13:10 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi everybody!

I would like to get your input on tools that can be used to create JavaFX Beans without the need to type alle the boilerplate code.

I looked into xtendfx but I am having problems creating properties with local types (see issue). It's a great proof of concept, but it doesn't seem ready for productional use. Maybe I am missing something or is there a newer version somewhere?

@Tom: In this discussion on google you mentioned a dsl to work with .fxbean files. Is that still out there?

Is there a plug-in for eclipse that will generate code, like "Source > Generate Getters and Setters..."?

Thanks for your input!

Christoph

[Updated on: Thu, 12 June 2014 13:11]

Report message to a moderator

Re: Tooling to create JavaFX Beans? [message #1385961 is a reply to message #1385955] Thu, 12 June 2014 13:27 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 12.06.14 15:10, Christoph Keimel wrote:
> Hi everybody!
>
> I would like to get your input on tools that can be used to create
> JavaFX Beans without the need to type alle the boilerplate code.
>
> I looked into https://github.com/svenefftinge/xtendfx but I am having
> problems creating properties with local types (see
> https://github.com/svenefftinge/xtendfx/issues/6). It's a great proof of
> concept, but it doesn't seem ready for productional use. Maybe I am
> missing something or is there a newer version somewhere?
>
> @Tom: In this
> https://groups.google.com/forum/?fromgroups#!searchin/efxclipse/Xtend/efxclipse/DJJh6eAkPXk/JvvOlDxBRWsJ
> you mentioned a dsl to work with .fxbean files. Is that still out there?

This code was not moved from github to Eclipse.org - the source is still
there so you could import those bundles into your workspace and make it
work with the latest Xtext/Xbase stuff.

https://github.com/tomsontom/e-fx-clipse/tree/master/at.bestsolution.efxclipse.tooling.efxbean
https://github.com/tomsontom/e-fx-clipse/tree/master/at.bestsolution.efxclipse.tooling.efxbean.ui

As you can see this efxbean had even more to offer because the developer
had the possibility to hold make the bean have a reflective nature
similar to EMF-eGet/eSet!

If you feel strongly about it and want to move this forward we could
move the code to Eclipse.org or start from scratch with a similar DSL,
writing those dumb beans by hand is not the way to go forward ;-)

>
> Is there a plug-in for eclipse that will generate code, like Source >
> Generate Getters and Setters...?
>

There is a start which is not yet finished (and so disabled) which would
give you auto-completetion support similar to what you have today with
getters and setters.

You can find the source in
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/tooling/org.eclipse.fx.ide.jdt.ui/src/org/eclipse/fx/ide/jdt/ui/internal/FXBeanJavaCompletionProposalComputer.java

What we have not yet started is a Getter/Setter Dialog but contributions
are very welcome ;-)

Tom
Previous Topic:Loading an FXML file and inject its controller into an E4 Part automatically
Next Topic:How to correctly deploy an e4 application that uses e(fx)clipse?
Goto Forum:
  


Current Time: Fri Apr 19 10:50:30 GMT 2024

Powered by FUDForum. Page generated in 0.01830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top