Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » Warning about number of arguments in property change handler method
Warning about number of arguments in property change handler method [message #1599727] Tue, 03 February 2015 16:09 Go to next message
Eclipse UserFriend
Hi,

I'm using e(fx)clipse 1.1.0 and keep getting warnings in my controller
that I think are wrong. There are two kinds of listeners in JavaFX,
those that listen to UI events like action (Button) and those that
listen to property change events like when the text of a text field
changes. Both can be handled by methods mentioned in FXML attributes
beginning with on, either on<Event> or on<Property>Change, with the
method name prefixed by #, e.g. onAction="#handleAction" or
onTextChange="#handleTextChange".

Event methods should have only one or no arguments, while the property
change methods must have three, the ObservableValue, the old and the new
value. However, FXML's compiler participant (I think it is
FxmlAnnotationCompilationParticipant) doesn't seem to know about the
latter, since I keep getting warnings stating that "JavaFX controller
method must have 0 or exactly 1 argument". However, everything works,
but the warning is confusing to my students and a bit annoying.

I couldn't find a bug entry, is this a knows problem?

Hallvard
Re: Warning about number of arguments in property change handler method [message #1599733 is a reply to message #1599727] Tue, 03 February 2015 16:13 Go to previous messageGo to next message
Eclipse UserFriend
No please file a bug
Re: Warning about number of arguments in property change handler method [message #1600694 is a reply to message #1599733] Wed, 04 February 2015 07:19 Go to previous message
Eclipse UserFriend
On 03.02.15 22:13, Thomas Schindl wrote:
> No please file a bug

https://bugs.eclipse.org/bugs/show_bug.cgi?id=459097
Previous Topic:Unable to retrieve the bundle from ... at.bestsolution.e4.theme.css ...
Next Topic:Is it possible to use the MessageRegistry with Choiceboxes?
Goto Forum:
  


Current Time: Wed May 21 05:27:08 EDT 2025

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

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

Back to the top