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 239995 - [80cat] Make Controller fails to inject new controller method on JDK 8 with Scene Builder 2.0
Summary: [80cat] Make Controller fails to inject new controller method on JDK 8 with S...
Status: RESOLVED DUPLICATE of bug 240037
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on: 239672
Blocks:
  Show dependency tree
 
Reported: 2014-01-05 02:00 UTC by Lou Dasaro
Modified: 2014-01-09 18:00 UTC (History)
1 user (show)

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 Lou Dasaro 2014-01-05 02:00:13 UTC
Make Controller fails to inject new controller method using JDK 8/SB2

The following test case demonstrates the error:
Purpose: Test NetBeans 8.0 FXML support with JDK 8 and JavaFX Scene Builder 2.0 (Developer Preview) installed.

Create New FXML Application in NetBeans 
   Invoke File | New Project... from main menu. "New Project" wizard appears.
   In the first step of the wizard select "JavaFX" category and "JavaFX FXML Application" project. Push Next > button.
   Change JavaFX Platform to JDK 1.8 and push Finish.
   In the Project View, Double-click on "FXMLDocument.fxml", which should open the selected FXML file in JavaFX Scene Builder 2.0
   In Scene Builder, from the Library of "Controls" (upper left), drag a Button control onto the Anchor Pane above the existing button.
   Click on the "Code" tab for this new Button control (bottom right) and the Code tab will expand.
   Type a unique name for the control in the "fxid:" field.
   Type a unique name for the method in the "On Action" field.
   Invoke File | Save action in the main Scene Builder menu.
   return to NetBeans
   Select the FXML file in the Projects view. Invoke the popup menu and select "Make Controller". 

   EXPECTED RESULT: The related FXMLDocumentController file is selected in NetBeans Edit window. The changes "Make Controller" should have made based on the updated FXML file are now visible in the editor (new @FXML method and new @FXML variable) 

   ACTUAL RESULT: The method and variable are NOT injected.

See also Bug #239672

Tested using:
JavaFX Scene Builder 2.0 (Developer Preview)
Version: 2.0-b09, Changeset: 12f988d79fe6  Date: 2013-12-19 09:33
Java 1.8.0-ea-b120, Oracle Corporation
  AND
Product Version: NetBeans IDE Dev (Build 201401020002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b63
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b121
System: Windows 8.1 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 1 Lou Dasaro 2014-01-06 16:59:42 UTC
It doesn't add the code, but it does shift focus to the Controller file.
Comment 2 bafrank1 2014-01-07 03:29:40 UTC
When selecting 'Make Controller', it did not create the method and variable code for me as well under Windows 7.

Tested using:

Product Version: NetBeans IDE Dev (Build 201401040002)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b63
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b121
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Roman Svitanic 2014-01-07 14:44:04 UTC
Changing component to correct one (Editor).
Comment 4 Roman Svitanic 2014-01-07 16:57:41 UTC
It seems that cause is same like in bug #240037 (see comment #1 there).
Comment 5 Roman Svitanic 2014-01-08 12:26:48 UTC
Root cause is same for both, this issue and #240037, therefore I am marking this as a duplicate.

*** This bug has been marked as a duplicate of bug 240037 ***
Comment 6 Lou Dasaro 2014-01-09 18:00:17 UTC
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...