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 32995

Summary: Modified file cannot be saved.
Product: java Reporter: Jan Lahoda <jlahoda>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P3    
Version: 3.x   
Hardware: Sun   
OS: SunOS   
Issue Type: DEFECT Exception Reporter:

Description Jan Lahoda 2003-04-17 12:56:10 UTC
Projects build 20030417000.
1. Open a Java class in the editor (use HelloWorld
from the Sample Project).
2. Wait until it is parsed (the class content
combo us "grayed" (disabled)).
3. Modify the file at the very beggining (before
the "package" statement).
4. The file cannot be saved, until the caret is
moved inside the class code (between "public class
HelloWorld {" and "}") and the content combo is
enabled. Cannot be saved means that Ctrl-S
shortcut and context menu "Save" item are
disabled. The save can be performed as "Save all"
from "Project" menu.

(Not sure whether this is projects, java, openide
or editor bug, assigning to project for evaluation.)
Comment 1 Jan Becicka 2003-04-17 13:09:00 UTC
Please don't forget to add PROJECTS keyword
Comment 2 Vitezslav Stejskal 2003-04-17 14:42:05 UTC
IMO it's problem in java module which creates special nodes
representing java source structure, all these nodes including the one
for whole file should contain SaveCookie in their Lookups.
Comment 3 Tomas Zezula 2003-06-26 13:44:31 UTC
Fixed.
Comment 4 Jan Becicka 2003-11-25 14:03:28 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 14:12:34 UTC
---> CLOSED