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.
JavaFX_NB_Plugin_NB65_daily: #309 2008-10-16_02-01-26.zip Product Version = NetBeans IDE Dev (Build 200810150101) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11; Sun Microsystems Inc. Steps to reproduce: - Copy the code to the editor --------------------------------------- import javafx.scene.Node; import javafx.scene.Group; import javafx.scene.CustomNode; class MyNode extends CustomNode{ public override function create ():Node { return Group{ } } } --------------------------------------- - Fix imports The order of imports is reverted -------------------------------------------------- import javafx.scene.CustomNode; import javafx.scene.Group; import javafx.scene.Node; class MyNode extends CustomNode{ public override function create ():Node { return Group{ } } } --------------------------------------------------
There is no defined order of imports. Imports are always ordered by alphabet order of FQCN. Different behavior should by implemented in next version.
It changes user's order of imports. New imports are added at the end of existed in Java editor. Just check: ------------------- Main.java -------------------------------------- import javax.swing.JLabel; import javax.swing.JTable; import javax.swing.JButton; public class Main { public static void main(String[] args) { // TODO code application logic here JTable table = null; JButton button = null; JLabel label = null; JList list; } } --------------------------------------------------------- - Fix imports
I've also noticed that because I have import java.util.ArrayList; import java.util.Map; in my code, these imports often get deleted when I "fix" other imports, forcing me to again "fix imports" for these two over and over again.
reassigning to new owner.
it should be fixed in http://hg.netbeans.org/javafx/rev/43957e2c6f7a
verified in marina-netbeans-plugin: #92 JavaFX NetBeans Plugin with promoted SDK build b05
verified in marina-netbeans-plugin ยป #113