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 251475 - "Make Controller" does nothing
Summary: "Make Controller" does nothing
Status: RESOLVED DUPLICATE of bug 240037
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-28 19:03 UTC by err
Modified: 2015-03-30 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description err 2015-03-28 19:03:15 UTC
With a tiny project:
    $ ls
    FXMLDocument.fxml*  FXMLDocumentController.java*  SvgWebview.java*

To reproduce:
- Only have FXMLDocumentController.java open in the editor.
- In the project view, right click on FXMLDocument.fxml,
  and choose "Open". This brings up the "Scene Builder"
- Add a new fx:id to something in the scene with scene builder
- save in scene builder (use external editor to verify .fxml file changed)
- In the project view, right click on FXMLDocument.fxml,
  and choose "Make Controller"

Observe in the open FXMLDocumentController.java that the newly added
fx:id is not put into the file by the "Make Controller" action.

Note that if I open the .fxml file and then perform the steps,
it works as expected.
Comment 1 err 2015-03-28 19:05:37 UTC
That last sentence should say "edit" not "open". More clearly read:

... if I edit the .fxml file with the IDE editor ...
Comment 2 Roman Svitanic 2015-03-30 09:51:45 UTC
There has been already filed an issue for this.

Simple workaround is to select Source > Scan for External Changes to make IDE aware of the external changes. Then Make Controller action will work.

*** This bug has been marked as a duplicate of bug 240037 ***