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 98477 - Remove import for component when component deleted
Summary: Remove import for component when component deleted
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 14:30 UTC by Lukas Hasik
Modified: 2008-05-05 10:46 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2007-03-21 14:30:07 UTC
070321

-add SVG menu to new visual midlet
-go to Source
-go to Flow view
-remove the SVG menu
-go to Source
->there is still import org.netbeans.microedition.svg.SVGMenu;
Comment 1 David Kaspar 2007-03-21 16:37:31 UTC
Changing to enhancement.
There is no way to find whether a particular import statement was autogenerated
or entered by an user. Therefore I would rather invoke optimize-import-section
action.
Comment 2 Lukas Hasik 2007-03-21 18:53:26 UTC
increasing priority doesn't mater if it's bug or enhancement...

Imagine a situation that you added a SVG component by mistake. You delete it but
it's not enought...
Comment 3 David Kaspar 2007-04-10 11:05:42 UTC
Anyway it is not easy to implement it e.g. there could be a case where a custom
component is used somewhere in the user-code. Therefore the correct fix is to
inspect whole source code or to invoke optimize-import action.
Comment 4 David Kaspar 2007-09-17 12:53:14 UTC
Very likely it will not be fixed in NB6.0.