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.
Summary: | [80cat] "Make Controller" action does not update the controller after FXML has been edited externally (in SceneBuilder) | ||
---|---|---|---|
Product: | javafx | Reporter: | Lou Dasaro <mr_lou_d> |
Component: | Editor | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | err, rsvitanic |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Lou Dasaro
2014-01-06 17:41:21 UTC
From the description of the problem it seems that you are opening and editing the fxml file in SceneBuilder. After that you return to the IDE and select "Make Controller" action on fxml file's node and nothing happens. I assume it's only in case that you haven't focused fxml in editor or reopened it in IDE after editing in SceneBuilder (or haven't selected "Source > Scan for External Changes"). IDE is not aware of the change, therefore it does not generate/update the controller. Yes, I open the fxml file in SceneBuilder and add a button and controller. After that I return to the IDE and select "Make Controller" action on fxml file's node and nothing happens. It sounds like you're saying NB isn't checking to see if it has an updated fxml when Make Controller is invoked. *** Bug 239995 has been marked as a duplicate of this bug. *** Just FYI, I created separate bug reports because this one originated from a JavaFX FXML project, while Bug 240037 originated from a Maven JavaFX project. It's okay by me though... (In reply to Lou Dasaro from comment #4) > Just FYI, I created separate bug reports because this one originated from a > JavaFX FXML project, while Bug 240037 originated from a Maven JavaFX > project. It's okay by me though... In this case this issue (and its root cause) is not dependent on project type. I find that when this happens if I load the FXML into a NetBeans editor with by right-clicking and selected Edit, that then MakeController will work. That extra step is the work-around. There are problems, in general, that occur because the file has been edited externally and NB doesn't "know" about it (UNTIL you select it into the editor). *** This bug has been marked as a duplicate of bug 241839 *** Svata, how is this a duplicate? In the instant case, "Make Controller" action does not update the controller after FXML has been edited externally when the FXML file has not focus in the editor. This is clearly different from Bug 241839 which deletes code when "Make Controller" is invoked. Perhaps I am missing something? *** Bug 251475 has been marked as a duplicate of this bug. *** |