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

Summary: Find usages and linking not working in some cases from FXML
Product: javafx Reporter: Petr Somol <psomol>
Component: EditorAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: johnjullion, markiewb, psomol, swpalmer
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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.