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 151206 - Fix Imports: clears dead imports every other time.
Summary: Fix Imports: clears dead imports every other time.
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 19:48 UTC by Lark Fitzgerald
Modified: 2008-10-24 15:03 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 Lark Fitzgerald 2008-10-23 19:48:03 UTC
Product Version: NetBeans IDE 6.5 RC1 (Build 200810171318)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)
Promoted Installer build 10 with SDK 43

1. open empty .fx fle
2. type Rectangle{} and fix imports
The import is added
3. replace Rectangle{} with Stage{} and fix imports
You have Rectangle and Stage imports
4. replace Stage{} with Timeline{}
You only have Timeline imports

It goes back and forth every other time.
Comment 1 Rastislav Komara 2008-10-24 09:09:03 UTC
Sorry, but I really don't understand this bug. If I follow steps this way:

1: empty .fx file

2: file contains:
Rectangle{}

3: fix imports. file contains:
import javafx.scene.shape.Rectangle;
Rectangle{}

4: file contains:
import javafx.scene.shape.Rectangle;
Stage{}

5: fix imports: file contains:
import javafx.stage.Stage;
Stage{}

6: file contains:
import javafx.stage.Stage;
Timeline{}

7: fix imports. File contains:
import javafx.animation.Timeline;
Timeline{}

From this point of view fix imports works correctly. Which version of NetBeans do you have? Are you really still working
with 2008/10/17? Or this is not a case which we are talking about?
Comment 2 Lark Fitzgerald 2008-10-24 15:03:35 UTC
You are right.  I anchored NB6.5 RC1 to my mac bar.  When I installed the latest bits, it installed as NB6.5 RC2, so 
my testing was done with the older version :-(