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 218482 - FXML "Make Controller" action generates the same event handler multiple time
Summary: FXML "Make Controller" action generates the same event handler multiple time
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 16:11 UTC by jeanfrancoisdenise
Modified: 2012-09-19 03:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
FXML sample (3.12 KB, application/octet-stream)
2012-09-17 16:11 UTC, jeanfrancoisdenise
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jeanfrancoisdenise 2012-09-17 16:11:30 UTC
Created attachment 124465 [details]
FXML sample

In the attached FXML there is some Nodes that reference the same event handler #keyPressed.
Although this is the same event handler, the method is generated as many time as there is usage in the FXML file. It must be generated once (if not already generated).
Comment 1 David Strupl 2012-09-17 19:20:30 UTC
That is Svata's new code. Svato, can you please have a look? Thanks.
Comment 2 Svata Dedic 2012-09-17 20:01:50 UTC
Changeset: a9ef649953b5
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-09-17 22:01
Message:   Issue #218482 - FXML "Make Controller" action generates the same event handler multiple time: fixed
Controller remembers just generated members and avoids duplication
Comment 3 Quality Engineering 2012-09-19 03:05:27 UTC
Integrated into 'main-golden', will be available in build *201209190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a9ef649953b5
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #218482 - FXML "Make Controller" action generates the same event handler multiple time: fixed
Controller remembers just generated members and avoids duplication