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 149360 - Fix imports does not work for user defined classes
Summary: Fix imports does not work for user defined classes
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on: 136056
Blocks:
  Show dependency tree
 
Reported: 2008-10-07 13:19 UTC by Alexandr Scherbatiy
Modified: 2008-11-03 15:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project (7.33 KB, application/x-compressed)
2008-10-21 19:01 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-10-07 13:19:39 UTC
Steps to reproduce

- Create Class1 JavaFX Script class under pack1 package:
  ------------------------------------
  package pack1;
 
  public class Class1 {
  }
  ------------------------------------


- Create Class2 JavaFX Script class under pack2 package:
  ------------------------------------
  package pack2;

  public class Class2 {
    var cls: Class1;
  }
  ------------------------------------

- Go to Class2 and invoke Fix Imports
  'import pack1.Class1;' line is not added.
Comment 1 Alexandr Scherbatiy 2008-10-07 13:23:34 UTC
JavaFX_NB_Plugin_NB65_daily: #288 2008-10-07_02-01-58.zip
  Product Version         = NetBeans IDE Dev (Build 200809151401)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc
Comment 2 Rastislav Komara 2008-10-08 13:46:34 UTC
This feature is not included in ClassIndex yet.
Comment 3 Rastislav Komara 2008-10-20 17:24:14 UTC
Fixed.
Comment 4 Lark Fitzgerald 2008-10-21 19:00:23 UTC
I can still reproduce this with:

Tested using Promoted SDK #42/Plugin build #43 Oct 21, 2008 5:31:51 PM
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 749, Build-ID: 2008-10-17_19-02-42 on:
Product Version: NetBeans IDE 6.5 RC1 (Build 200810171318)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)


I've attached the project I used.
Comment 5 Lark Fitzgerald 2008-10-21 19:01:40 UTC
Created attachment 72415 [details]
project
Comment 6 Rastislav Komara 2008-10-22 10:45:29 UTC
Yes yes, my fault. Closed by accident.
Comment 7 Rastislav Komara 2008-11-03 09:54:23 UTC
blocking issue has been resolved. closing.
Comment 8 Lark Fitzgerald 2008-11-03 15:08:45 UTC
Continuous build #490 contains SDK 46 (768) 
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)