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 7378 - Rename of InstanceDataObject does not update special icons/names
Summary: Rename of InstanceDataObject does not update special icons/names
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 minor (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-14 13:38 UTC by Jesse Glick
Modified: 2008-12-22 16:13 UTC (History)
2 users (show)

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 Jesse Glick 2000-08-14 13:38:12 UTC
If an InstanceDataObject has a special icon (from BeanInfo or from SystemAction)
or a special name (from SystemAction) and the object is renamed, the icon/name
do not update accordingly.

Very low priority since few people would ever rename an IDO anyway.
Comment 1 Jaroslav Tulach 2000-08-22 14:46:59 UTC
You are working on some releated bugs, so I guess you could fix this one too?
Comment 2 Petr Pisl 2000-08-31 15:22:59 UTC
I think, that it is work correctly.
Comment 3 Jesse Glick 2000-08-31 15:37:59 UTC
Are you sure it is working correctly? E.g. in some folder create an empty file
outside the IDE named org-openide-actions-CutAction.instance. Inside the IDE
this should appear as an icon "Cut" with a scissors (= nuzky) icon. Rename
inside the IDE to org-openide-actions-CopyAction.instance. The proper thing is
for it to show "Copy" on the node and have a clipboard icon. But I think I tried
this not long ago and it did not work (it stayed with the "Cut" name and
scissors icon). Also it should change its InstanceCookie to be an instance of
CopyAction instead of CutAction. You can test whether this happens by
right-clicking on the node when API Support is installed, Tools | Bean Browse |
Node, and explore its cookies.

To repeat: this is really low priority, don't spend time on it if you have
something more important.
Comment 4 Jan Zajicek 2001-01-23 09:31:59 UTC
Automated change of version from Other to Dev.
Comment 5 Jan Chalupa 2001-03-12 12:07:14 UTC
Version: 'Dev' -> 3.2
Comment 6 Jan Chalupa 2001-05-06 08:10:10 UTC
Target milestone -> 3.3
Comment 7 Jan Chalupa 2001-11-27 13:01:51 UTC
Target milestone -> 3.3.1.
Comment 8 Jaroslav Tulach 2001-12-04 15:03:03 UTC
I can try.
Comment 10 Jan Pokorsky 2001-12-07 15:40:32 UTC
The fix caused a regression (see unit test InstanceDataObjectTest). I 
was asked by Jarda to do a rollback of his change and close the bug as 
 WONTFIX.

If IDO is renamed just its name is changed and that is updated 
properly. Neither filename nor classname cannot be changed by renaming 
IDO(name is stored in the file attribute 'name'). Using filename for 
class storage was deprecated.
Comment 11 Jesse Glick 2001-12-07 17:59:31 UTC
I would agree, WONTFIX seems reasonable for this reason.
Comment 12 Jan Pokorsky 2001-12-07 19:03:53 UTC
Done.

http://openide.netbeans.org/source/browse/openide/src/org/openide/load
ers/InstanceDataObject.java.diff?r1=1.113.2.3&r2=1.113.2.4
Comment 13 Jan Zajicek 2001-12-10 12:51:36 UTC
Verified as wontfix.
Comment 14 Quality Engineering 2003-07-01 16:19:57 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.