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 87329 - Open recent file should listen on project rename
Summary: Open recent file should listen on project rename
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks: 87188
  Show dependency tree
 
Reported: 2006-10-17 12:48 UTC by Tomas Danek
Modified: 2007-01-16 17:00 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 Tomas Danek 2006-10-17 12:48:55 UTC
NetBeans IDE Dev (Build 200610161800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

1) create java app with main class
2) open and close main class
3) rename project (check Also rename project folder)
4) invoke File|Open recent file ->

org.openide.loaders.DataObjectNotFoundException:
MasterFileObject@1e1d547[C:/Documents and Settings/Tomas Musil/My
Documents/NetBeansProjects/JavaApplication15/src/javaapplication15/Main.java]
	at org.openide.loaders.DataObject.find(DataObject.java:469)
	at
org.netbeans.modules.openfile.RecentFileAction.fillSubMenu(RecentFileAction.java:115)
	at
org.netbeans.modules.openfile.RecentFileAction.popupMenuWillBecomeVisible(RecentFileAction.java:85)
	at javax.swing.JPopupMenu.firePopupMenuWillBecomeVisible(JPopupMenu.java:638)
	at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:752)
Comment 1 Tomas Danek 2006-10-17 12:50:37 UTC
unlike in issue 87311, expected behaviour is to reflect such a change and look
for a file in a renamed project folder. P2 since this is one of M4 features. 
Comment 2 David Simonek 2006-10-17 15:27:08 UTC
After fix of 87252, no exception in thrown, file is just removed from
RecentList, which is IMHO not so critical problem, consider to lower priority to
P3...
Comment 3 David Simonek 2006-10-18 12:25:44 UTC
This is heads-up call: I won't be able to fix this issue into M4, as the fix is
really complicated, error prone and resources intensive. 

Current state is that moved file is deleted from recent list, regardless of
whether the file was moved manually or during project rename. No exceptions. I
consider current state as good enough (especially for M4) and IMHO it's not
worth to fix it.

Please remove the issue from M4 stoppers and consider to close as wontfix. Let
me know what you think.

Comment 4 Tomas Danek 2006-10-18 14:28:42 UTC
IMO for M4 this is good enough, but i disagree to close as wontfix.
Comment 5 David Simonek 2006-10-18 15:37:43 UTC
musilt2: I respect that you don't agree with wontfix, but I'm not able to fix
it. Does it make sense to have this issue opened forever? Surely no.
Comment 6 Tomas Danek 2006-10-18 16:09:19 UTC
ok, i do understand that fixing this is overcomplicated,  and probably would
badly affect performance. Can be consedered as fixed the way it is now.
Comment 7 David Simonek 2006-10-18 18:28:41 UTC
thank you.
Comment 8 Tomas Danek 2007-01-16 17:00:25 UTC
verified.