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 18560 - Lost editor window in saved project
Summary: Lost editor window in saved project
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-12 11:30 UTC by Milan Kubec
Modified: 2003-07-01 14:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (1.06 KB, text/plain)
2001-12-12 11:32 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2001-12-12 11:30:39 UTC
Editor window can be lost and exception is thrown when working with saved
project and original project. Another issue is that first saved project doesn't
contain all windows openned in original project.

Steps to reproduce:
1) open fresh clean IDE
2) open java source file in Default Project
3) open Project Manager and save Default project by action Save as, e.g.
Default-copy1
4) switch to project Default-copy1 and editor is missing there = bug 1
5) open Project Manager and save another Default project by action Save as, e.g.
 Default-copy2
6) switch to project Default-copy2, editor should be there
7) switch to project Default and close editor with java file
8) switch to project Default-copy2 and editor is missing and exception is thrown
Comment 1 Milan Kubec 2001-12-12 11:32:03 UTC
Created attachment 3787 [details]
exception stack trace
Comment 2 mslama 2001-12-12 13:53:35 UTC
Problem is that there is no support for active project to be saved
when Save As action is invoked. (Save As itself just copies project
folder). Project folder of active project on disk does not contain
current project status - current status is only in memory. Reassigning
to projects.
Comment 3 Milan Kubec 2001-12-12 14:07:01 UTC
Serious enough to be P2.
Comment 4 Vitezslav Stejskal 2001-12-12 15:24:24 UTC
Serious, but almost unsolvable for 3.3.x. Ugly solution is to disable 
'Save As' for opened project, nicer solution is to save winsys before 
the action is performed and finally correct solution is to rewrite 
winsys to keep its persistant state up-to-date with in-memory changes.

In fact, this problem doesn't involve window system only, but all the 
project stuff including settings, filesystems, etc. Window system is 
the worst case because it doesn't persist its state when change 
occures, but on project close event only. Generaly there isn't any way 
in the architecture how to ensure that all the project stuff gets 
saved on request. In other words everything in the project (including 
window system) is responsible to keep its persistant state 
synchronized with in-memory state. Since this change isn't realistic 
for 3.3.x I would implement saving of winsys prior the 'Save As' 
action.
Comment 5 Vitezslav Stejskal 2001-12-17 15:55:18 UTC
Project module forces winsys saving whenever the project needs to be 
saved. This dependency between projects and core will be removed after 
the winsys will persist its state automaticaly on each change. Dafe, 
please, let me know ...

Fixed in release33.
Comment 6 Milan Kubec 2002-01-17 09:14:31 UTC
Verified in release33-200201170331.
Comment 7 Quality Engineering 2003-07-01 14:17:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.