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 178365 - Renaming/moving applet doesn't affect project settings
Summary: Renaming/moving applet doesn't affect project settings
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-09 06:33 UTC by dkuzmin
Modified: 2010-02-17 21:56 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 dkuzmin 2009-12-09 06:33:00 UTC
Create classic applet project, right click on applet name in source code and select "refactor", "rename" or "move" items and change applet or package name.

Open project properties, "applets". There are few problems:

- new applet is in the list "Applets to Include in applet.xml", but it is not selected
- applet received new AID and when applet is selected to be included into applet.xml instance of applet also receives new AID. It differs from one used in default apdu script.
- applet has no display name anymore

So, refactoring requires additional and not quite obvious user actions in this case.
Comment 1 _ tboudreau 2010-02-16 20:43:21 UTC
There is some existing code to refactor applet.xml, etc. when a class is renamed;  however it is somehow broken at the moment.  

Very difficult to decipher what it was supposed to do, as there is quite a bit of stuff relating to refactoring javacard.xml, which in fact never has any relevant contents.
Comment 2 _ tboudreau 2010-02-16 22:32:55 UTC
Fixed in main/ 1501b23232ef and main/ d15d0ce10721

If an applet is referenced either in APPLET-INF/applet.xml or nbproject/deployment.xml, all references are updated on a rename.

Added missing support for move refactoring as well.
Comment 3 Quality Engineering 2010-02-17 21:56:28 UTC
Integrated into 'main-golden', will be available in build *201002180200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1501b23232ef
User: Tim Boudreau <tboudreau@netbeans.org>
Log: #178365 - applet.xml, et. al., not updated on rename refactorings