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 184926 - "Fix imports" from another's project Java class won't work
Summary: "Fix imports" from another's project Java class won't work
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-25 11:18 UTC by tiefflieger
Modified: 2010-05-17 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Two projects, fix import in TestJavaFX fails (13.66 KB, application/x-gtar)
2010-04-25 11:18 UTC, tiefflieger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tiefflieger 2010-04-25 11:18:25 UTC
Created attachment 97972 [details]
Two projects, fix import in TestJavaFX fails

Steps to reproduce:
1) Create a new "Java Application" project called "TestJava" in NetBeans
1.1) Create a new class called "Car"
2) Create a new "JavaFX Script Application" project called "TestJavaFX" in NetBeans
2.1) Add the project "TestJava" to the libraries of the project "TestJavaFX"
2.2) In Main.fx of the project, add line "var car = new Car()"

After this, Netbeans complains in Main.fx that it can't find the class Car. Function "Fix imports" doesn't work, I have to add the needed import 
"import testjava.Car;"
manually to the Main.fx.
Comment 1 J Bachorik 2010-04-29 15:47:34 UTC
fixed by http://hg.netbeans.org/javafx/rev/fa75b9489515
Comment 2 Alexandr Scherbatiy 2010-05-17 09:53:48 UTC
verified in NetBeans-JavaFX-Soma: #253 May 14, 2010 8:37:15 AM