e(fx)clipse shows the warning on every function with ChangeListener signature which is annotated with @FXML
@FXML
private void fldMyTextFieldChanged( ObservableValue< ? extends String > observable, String oldValue, String newValue ) {
doSomethingIcredible();
}
The corresponding FXML looks like
<TextField fx:id="fldMyTextField"
text="Results in annoying warnings"
onTextChange="#fldMyTextFieldChanged" />
According to the FXML-documentation change-listeners can be attached this way - and it does work fine with the exception that e(fx)clipse issues that annoying warning (if you have numerous TextFields that clutters the Warnings).
I tried to locate a corresponding entry in the Compiler-Settings (Warnings and Errors) but could not find an entry to reconfigure the behaviour.
I also tried several approaches with @SuppressWarnings-annotations using parts of the warning. But that didn't work either and resulted in Warnings at the annotation itself reading something like
Unsuported @UnsupportedWarnings("JafaFX").
Any suggestions? - Thanks
PS: I use the latest e(fx)clipse and currently OpenJDK 19 in combination mit JPMS (Java Modules) - if somebody is wondering