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 124244 - Run 'Remove Unused Imports' After Deleting Action from Application Actions window.
Summary: Run 'Remove Unused Imports' After Deleting Action from Application Actions wi...
Status: RESOLVED DUPLICATE of bug 152770
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-19 06:37 UTC by adam_myatt
Modified: 2013-06-18 17:32 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 adam_myatt 2007-12-19 06:37:12 UTC
Small situational enhancement suggested when using the Swing App Framework.

In NB 6, I created a new Java Desktop Application, using the "Basic Application" shell. Once generated it contained 
some actions. In the Window > Other > Application Actions window, I selected the closeAboutBox Action and clicked 
Delete. the Action was deleted from the window. When I opened the DesktopAboutBox class the project templated had 
updated, the original method for the closeAboutBox action still existed. The @Action annotation had been removed. Also 
the initComponents method had correctly removed the assoication between the component and the Action.

As this was the only Action in that class, when looking at the import statements, I saw that import 
org.jdesktop.application.Action; was still listed and highlighted as an unused import. I would suggest that when the 
Delete Action button in the Application Actions window is executed and the code updated, it should attempt to trigger 
an automatic removal of any unused imports from that class.
Comment 1 Tomas Pavek 2013-06-18 17:32:52 UTC

*** This bug has been marked as a duplicate of bug 152770 ***