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 187237 - "Create function" hint creates function in wrong file
Summary: "Create function" hint creates function in wrong file
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-06 11:55 UTC by rmichalsky
Modified: 2010-06-17 11:09 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 rmichalsky 2010-06-06 11:55:22 UTC
Steps to reproduce:

1) create empty JavaFX project with main script file with run(args: String[]) function (no class)
2) create empty class named A in file A.fx in the same package
3) put code:
      var a = A {}
      a.foo();
   into run function
4) Alt-Enter on line "a.foo();" and select "Create function foo in A"
5) function foo() is created in main script file instead in A.fx

NB 6.9 beta with bundled JavaFX SDK.
Comment 1 Karol Harezlak 2010-06-07 12:54:16 UTC
fixed before RC, not reproducible in RC2
Comment 2 Alexandr Scherbatiy 2010-06-17 11:09:36 UTC
verified in NetBeans IDE Dev (Build 201006170001)

The hint is not suggested now.