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

Summary: Remove import for component when component deleted
Product: javame Reporter: Lukas Hasik <lhasik>
Component: Visual DesignerAssignee: Karol Harezlak <kharezlak>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.