This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 234322 - Find usages and linking not working in some cases from FXML
Summary: Find usages and linking not working in some cases from FXML
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2013-08-13 11:58 UTC by Petr Somol
Modified: 2015-09-16 09:19 UTC (History)
4 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Somol 2013-08-13 11:58:33 UTC
Based on discussion with JavaFX team on 12 AUG 13 I quote:

Q: Find usages and linking not working in some cases from FXML -  I saw that they work for the Controller class but weren't working for individual methods?

A: Right. The shortcut+click works for css file & controller file, but the onAction="#myHandler" for a Button, for example, didn't work. We did get code completion for any methods that were already defined on the controller (that took the event object). I believe it is valid to target a method that takes no arguments as well.

What you want here is the ability to type in some name and get a hint to add the method to the controller if it isn't already defined. Also to shortcut+click to take you to the method. You also want "find usages" on the method in the controller to show the usages in FXML files.
Comment 1 swpalmer 2014-02-06 20:12:50 UTC
Find usages on the controller class should also show where it is referenced in the FXML file, as that may be the only reference in the project.