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 154296 - Default view of a tab in SQL editor doesn't show difference between SQL console and SQL file
Summary: Default view of a tab in SQL editor doesn't show difference between SQL conso...
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 20:06 UTC by Roman Mostyka
Modified: 2013-09-04 08:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
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. Click "File" in main menu.

Result: "Save As" item is enabled and it is possible to save content of SQL editor as file, but it isn't obvious since
name of the tab in SQL editor doesn't look like file. If user opens sql file, then tab in SQL editor looks like file.
Probably we should add .sql also to unnamed SQL files, since they are still files and stored in
.netbeans/dev/config/Databases/SQLCommands directory.
Comment 1 John Baker 2008-12-02 00:30:21 UTC
When using View-Data, the SQL Editor is just a console, so the name in the tab is not to be given a filename.

I think if the way View->Data is changed, users will be confused.

If the behavior of View Data should be changed then reopen the issue, but we'll have to have a discussion on this
Comment 2 Roman Mostyka 2008-12-02 18:11:48 UTC
So what is decision? :)
Comment 3 John Baker 2008-12-02 18:40:28 UTC
For console files
* In the file tab, icon will be plain or different than a saved SQL file
* For the tooltip for the file tab, the console file should just contain the name, not the full path.
* When first opening, Save is enabled
* When Save is clicked, the Save As dialog will open 
** in the Save As dialog, the default name will be just the name, no extension
Comment 4 Roman Mostyka 2008-12-02 19:11:17 UTC
OK. So I reopen this issue according to your comments:
"* In the file tab, icon will be plain or different than a saved SQL file".
Note that Summary has been also changed.
Comment 5 Jiri Rechtacek 2009-10-16 14:05:29 UTC
Reassigned to new owner.