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 7835 - Form file is not saved when closing document
Summary: Form file is not saved when closing document
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-09 15:49 UTC by Tomas Pavek
Modified: 2007-09-26 09:14 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 Tomas Pavek 2000-10-09 15:49:45 UTC
When changed document is being saved during close action, saveDocument() method
of JavaEditor (FormEditorSupport) is not called. Only the text (source code) is
saved, not the form file. Saving by save action works fine.
It's a problem of EditorSupport (uses a delegate for canClose() & others).
JavaEditor should be a subclass of DataEditorSupport or CloneableEditorSupport
instead.
Comment 1 Svata Dedic 2000-11-10 17:39:59 UTC
[1149, 004, dev-67] Fixed.
Comment 2 Jan Becicka 2000-11-11 11:32:59 UTC
[1151]
Form is saved when closing document, but not when closing IDE.
Steps to reproduce:
1. Create Form "Test"
2. Put JLabel in "Test"
3. Create Form "Test2"
4. Put JLabel in "Test2"

Close IDE:
"Test2" is not in list of modified files -> is not saved, when Save All is
pressed.
"Test1" is in this list, even if You save this form using File | Save.
Comment 3 Jan Becicka 2000-11-11 13:03:59 UTC
This problem is more generall, see #8372.
Comment 4 Jan Becicka 2000-11-13 12:33:59 UTC
[1153] Verified
Comment 5 Quality Engineering 2003-07-01 13:20:29 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.