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 154295 - "Save" item is disabled if unnamed file is modified
Summary: "Save" item is disabled if unnamed file is modified
Status: RESOLVED WONTFIX
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 20:06 UTC by Roman Mostyka
Modified: 2009-02-19 20:38 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 Roman Mostyka 2008-12-01 20:06:30 UTC
1. Connect to "travel" Java DB.
2. Rightclick "person" table and choose "View Data".
3. Add " where personid=1" to the statement and click "File" in main menu.

Result: "Save" item is disabled. According to point 4) at http://wiki.netbeans.org/SaveAsInSQLEditor it should be enabled.
Comment 1 John Baker 2008-12-01 20:17:26 UTC
this is the same as 154294 -when 154294 is fixed this will be fixed

*** This issue has been marked as a duplicate of 154294 ***
Comment 2 John Baker 2008-12-02 00:26:12 UTC
invalid per the comment in 154294
Comment 3 Roman Mostyka 2008-12-02 18:13:02 UTC
Even with comments in the issue #154294 I don't agree that it is a duplicate.
At least according to point 4) at http://wiki.netbeans.org/SaveAsInSQLEditor.
If there is a mistake in this point, then please close this issue and revise wiki page.
Comment 4 John Baker 2008-12-02 18:49:30 UTC
In NetBeans, if modifications are made to a file then the file is marked that changes occurred and Save is enable...

and the same mechanism is used when closing a file - the file is marked that changes occurred, so..  when IDE is exiting
the Save dialog opens.

There is no distinction 



Comment 5 Roman Mostyka 2008-12-02 19:12:44 UTC
But for me "Save" item id disabled even if content is modified.
Comment 6 John Baker 2008-12-02 19:37:52 UTC
From today's discussions, save should be enabled if temporary file is modified.

However, only one issue is needed to track this, not 2 (this one and 154294)
Comment 7 Roman Mostyka 2008-12-02 19:41:20 UTC
But you've closed issue #154294 as INVALID. ;)
Comment 8 John Baker 2008-12-02 19:45:10 UTC
Cmon Roman, I closed it yesterday.  Today we decided to change the behavior

Comment 9 John Baker 2008-12-05 00:22:51 UTC
Afterall, temporary files remain as temporary files until the user re-saves the file using Save As

Expected behavior:
case A
1. Connect to "travel" Java DB.
2. Rightclick "person" table and choose "View Data".
3. Add " where personid=1" to the statement and click "File" in main menu.
Result - Save remains disabled

case B
1. Connect to "travel" Java DB.
2. Rightclick "person" table and choose "View Data".
3. Choose Save As and save the file to another name 
4. Add " where personid=1" to the statement and click "File" in main menu.
Result - Save becomes enabled