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.
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.
this is the same as 154294 -when 154294 is fixed this will be fixed *** This issue has been marked as a duplicate of 154294 ***
invalid per the comment in 154294
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.
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
But for me "Save" item id disabled even if content is modified.
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)
But you've closed issue #154294 as INVALID. ;)
Cmon Roman, I closed it yesterday. Today we decided to change the behavior
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