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 28417 - [IMT] Import Tool does not handle form read-only regions correctly
Summary: [IMT] Import Tool does not handle form read-only regions correctly
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-02 03:15 UTC by Torbjorn Norbye
Modified: 2007-09-26 09:14 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 Torbjorn Norbye 2002-11-02 03:15:09 UTC
I ran the Import Tool on my java files. (Why oh
why can't it operate on multiple files
simultaneously? I suppose I should file an RFE for
that...)

I don't want to use wildcards, and I don't want to
have FQN's in my source, so I had set the FQN
threshold to 0 (I first set it to 1 - but that
doesn't work. That seems wrong.)

Then I ran the import tool on each file, just
pressing "Finish" as soon as the dialog came up.

For two of my files, it would no longer compile
after running the import tool.  In both cases, the
Import Tool had removed importing the NbBundle
class.  And NbBundle was referenced only in the
initComponents() section generated by the form
module; never outside of the blue areas.

E.g. Import Tool removes necessary/referenced
imports, and it seems to be related to those
imports occurring inside of form builder read-only
regions.
Comment 1 Tomas Hurka 2003-01-21 15:28:13 UTC
Import Management Tool does not process guarded blocks, since it cannot modify them. The code in guarded blocks must use FQN.