Revision: 6689
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6689&view=rev
Author: gerdwagner
Date: 2012-10-16 11:34:52 +0000 (Tue, 16 Oct 2012)
Log Message:
-----------
Detached Windows --> Made Dialogs appear above the right window
Modified Paths:
--------------
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/WindowManager.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ConnectToAliasCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyAliasCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyDriverCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateDriverCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DeleteDriverCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/GlobalPreferencesCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/InstallDefaultDriversCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ModifyDriverCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowDriverWebsiteCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowLoadedDriversOnlyCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewFileCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewHelpCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/ObjectTreeSearch.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionWindowCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CopyObjectNameCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DeleteTablesCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DumpSessionCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/EditWhereColsCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FilterObjectsAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FormatSQLCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoPreviousResultsTabCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ReturnResultTabCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SQLFilterCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SessionPropertiesCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SetDefaultCatalogCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLAction.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLCommand.java
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLHistoryController.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTextPanel.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/GUIUtils.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/TablePopupMenu.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/AbstractExportCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/MakeEditableCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/ResultSetExportCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/ResultSetExportCsvController.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/ResultSetExportDialog.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyHtmlCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyInStatementCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyInsertStatementCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyUpdateStatementCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyWhereStatementCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableCopyWikiCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableExportCsvController.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableExportCsvDlg.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableSelectAllCellsCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/TableSelectEntireRowsCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/gui/action/UndoMakeEditableCommand.java
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/util/ICommand.java
trunk/sql12/plugins/dataimport/src/main/java/net/sourceforge/squirrel_sql/plugins/dataimport/action/ImportTableDataCommand.java
trunk/sql12/plugins/dbcopy/src/main/java/net/sourceforge/squirrel_sql/plugins/dbcopy/commands/CopyTableCommand.java
trunk/sql12/plugins/dbdiff/src/main/java/net/sourceforge/squirrel_sql/plugins/dbdiff/commands/CompareCommand.java
trunk/sql12/plugins/dbdiff/src/main/java/net/sourceforge/squirrel_sql/plugins/dbdiff/commands/SelectCommand.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/ConvertToStringBufferAction.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/ConvertToStringBufferCommand.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/InQuotesAction.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/InQuotesCommand.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/RemoveNewLinesCommand.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/RemoveQuotesAction.java
trunk/sql12/plugins/editextras/src/main/java/net/sourceforge/squirrel_sql/plugins/editextras/RemoveQuotesCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/GenerateSqlAction.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/GenerateSqlCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/IndexDefragCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/ScriptProcedureCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/ScriptProcedureExecCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/ShowStatisticsCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/ShrinkDatabaseCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/ShrinkDatabaseFileCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/TruncateLogCommand.java
trunk/sql12/plugins/mssql/src/main/java/net/sourceforge/squirrel_sql/plugins/mssql/action/UpdateStatisticsCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/AbstractMultipleSQLCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/AbstractTableListCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/AlterTableCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/CheckTableAction.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/CopyTableCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/CreateDatabaseCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/CreateMysqlTableScriptCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/CreateTableCommand.java
trunk/sql12/plugins/mysql/src/main/java/net/sourceforge/squirrel_sql/plugins/mysql/action/DropDatabaseCommand.java
trunk/sql12/plugins/postgres/src/main/java/net/sourceforge/squirrel_sql/plugins/postgres/actions/AbstractObjectTreeAction.java
trunk/sql12/plugins/postgres/src/main/java/net/sourceforge/squirrel_sql/plugins/postgres/commands/VacuumDatabaseCommand.java
trunk/sql12/plugins/postgres/src/main/java/net/sourceforge/squirrel_sql/plugins/postgres/commands/VacuumTableCommand.java
trunk/sql12/plugins/refactoring/src/main/java/net/sourceforge/squirrel_sql/plugins/refactoring/commands/AbstractRefactoringCommand.java
trunk/sql12/plugins/sqlbookmark/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlbookmark/AddBookmarkCommand.java
trunk/sql12/plugins/sqlbookmark/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlbookmark/RunBookmarkCommand.java
trunk/sql12/plugins/sqlparam/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlparam/SQLParamExecutionListener.java
trunk/sql12/plugins/sqlreplace/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlreplace/SQLReplaceExecutionListener.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/AbstractDataScriptCommand.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateDataScriptCommand.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateDataScriptOfCurrentSQLCommand.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateFileOfCurrentSQLAction.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateFileOfCurrentSQLCommand.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateSelectScriptCommand.java
trunk/sql12/plugins/sqlscript/src/main/java/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateTableOfCurrentSQLCommand.java
trunk/sql12/plugins/syntax/src/main/java/net/sourceforge/squirrel_sql/plugins/syntax/AutoCorrectController.java
trunk/sql12/plugins/syntax/src/main/java/net/sourceforge/squirrel_sql/plugins/syntax/AutoCorrectDlg.java
trunk/sql12/plugins/syntax/src/main/java/net/sourceforge/squirrel_sql/plugins/syntax/ConfigureAutoCorrectAction.java
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/WindowManager.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/WindowManager.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/WindowManager.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -869,7 +869,6 @@
private void createMainFrame()
{
_mainFrame = new MainFrame(_app);
- GUIUtils.setMainFrame(_mainFrame);
}
private void createAliasesListUI()
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -1,14 +1,9 @@
package net.sourceforge.squirrel_sql.client.gui.desktopcontainer;
import java.awt.event.ActionEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
import net.sourceforge.squirrel_sql.fw.gui.action.BaseAction;
-import net.sourceforge.squirrel_sql.client.gui.desktopcontainer.IWidget;
-import javax.swing.*;
-
public class SelectWidgetAction extends BaseAction
{
private static final int MAX_TITLE_LENGTH = 50;
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/SelectWidgetCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -1,11 +1,8 @@
package net.sourceforge.squirrel_sql.client.gui.desktopcontainer;
-import java.beans.PropertyVetoException;
-
import javax.swing.*;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
-import net.sourceforge.squirrel_sql.client.gui.desktopcontainer.IWidget;
public class SelectWidgetCommand implements ICommand
{
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
+
/**
* This <CODE>Action</CODE> displays the applications About Box.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/AboutCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.AboutBoxDialog;
+
/**
* This <CODE>ICommand</CODE> allows the user to copy an existing
* <TT>ISQLAlias</TT> to a new one and then maintain the new one.
@@ -52,7 +53,7 @@
/**
* Display the About Box.
- */
+ */
public void execute()
{
AboutBoxDialog.showAboutBox(_app);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -53,7 +53,7 @@
/**
* Close all sessions.
- */
+ */
public void execute()
{
_app.getSessionManager().closeAllButCurrentSessions();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -23,6 +23,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
+
/**
* This <CODE>Action</CODE> allows the user to close all currently
* open sessions.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -20,6 +20,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.IApplication;
+
/**
* This <CODE>ICommand</CODE> allows the user to close all open sessions.
*
@@ -52,7 +53,7 @@
/**
* Close all sessions.
- */
+ */
public void execute()
{
_app.getSessionManager().closeAllSessions();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ConnectToAliasCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ConnectToAliasCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ConnectToAliasCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -20,7 +20,7 @@
*/
import java.sql.SQLException;
-import javax.swing.SwingUtilities;
+import javax.swing.*;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.db.ConnectToAliasCallBack;
@@ -117,7 +117,7 @@
/**
* Display connection internal frame.
- */
+ */
public void execute()
{
try
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyAliasCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyAliasCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyAliasCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,8 @@
import net.sourceforge.squirrel_sql.client.gui.db.SQLAlias;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
+import javax.swing.*;
+
/**
* This <CODE>ICommand</CODE> allows the user to copy an existing
* <TT>ISQLAlias</TT> to a new one and then maintain the new one.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyDriverCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyDriverCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CopyDriverCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,9 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.IApplication;
+
+import javax.swing.*;
+
/**
* This <CODE>ICommand</CODE> allows the user to copy an existing
* <TT>ISQLDriver</TT> to a new one and then maintain the new one.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -20,6 +20,7 @@
import java.awt.event.ActionEvent;
import net.sourceforge.squirrel_sql.client.IApplication;
+
/**
* This <CODE>Action</CODE> allows the user to create a new <TT>ISQLAlias</TT>.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -20,6 +20,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.IApplication;
+
/**
* This <CODE>ICommand</CODE> allows the user to create a new <TT>ISQLAlias</TT>.
*
@@ -50,7 +51,7 @@
/**
* Execute command.
- */
+ */
public void execute()
{
_app.getWindowManager().showNewAliasInternalFrame();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateDriverCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateDriverCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/CreateDriverCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,8 @@
import net.sourceforge.squirrel_sql.client.IApplication;
+import javax.swing.*;
+
/**
* This <CODE>ICommand</CODE> allows the user to create a new <TT>ISQLDriver</TT>.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DeleteDriverCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DeleteDriverCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DeleteDriverCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -28,6 +28,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.fw.util.StringManager;
import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
+
/**
* This <CODE>ICommand</CODE> allows the user to delete an existing
* <TT>ISQLDriver</TT>.
@@ -80,7 +81,7 @@
/**
* Delete the current <TT>ISQLDriver</TT> after confirmation.
- */
+ */
public void execute()
{
final Object[] args = {_sqlDriver.getName()};
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -50,6 +50,7 @@
import net.sourceforge.squirrel_sql.client.session.ISession;
import net.sourceforge.squirrel_sql.client.session.action.DumpSessionCommand;
import net.sourceforge.squirrel_sql.client.util.ApplicationFiles;
+
/**
* This <CODE>ICommand</CODE> will dump the status of the application.
*
@@ -112,7 +113,7 @@
/**
* Dump the application.
- */
+ */
public void execute()
{
List<File> files = new ArrayList<File>();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/GlobalPreferencesCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/GlobalPreferencesCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/GlobalPreferencesCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.preferences.GlobalPreferencesSheet;
+
/**
* This <CODE>ICommand</CODE> displays the Global Preferences dialog..
*
@@ -51,7 +52,7 @@
/**
* Display the Dialog
- */
+ */
public void execute()
{
GlobalPreferencesSheet.showSheet(_app, null);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/InstallDefaultDriversCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/InstallDefaultDriversCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/InstallDefaultDriversCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -25,6 +25,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.IApplication;
+
/**
* This <CODE>ICommand</CODE> allows the user to install the defautl drivers.
*
@@ -69,7 +70,7 @@
* Load the default drivers into the cache and then
* make sure that the drivers list is showing all
* drivers.
- */
+ */
public void execute() throws BaseException
{
try
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ModifyDriverCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ModifyDriverCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ModifyDriverCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.IApplication;
+
/**
* This <CODE>ICommand</CODE> allows the user to modify an existing
* <TT>ISQLDriver</TT>.
@@ -63,7 +64,7 @@
/**
* Display a dialog allowing user to maintain the <TT>ISQLDriver</TT>.
- */
+ */
public void execute()
{
_app.getWindowManager().showModifyDriverInternalFrame(_driver);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowDriverWebsiteCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowDriverWebsiteCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowDriverWebsiteCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -25,6 +25,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.fw.util.StringManager;
import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
+
/**
* This <CODE>ICommand</CODE> allows the user to launch the default
* web-browser to view the driver's website.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowLoadedDriversOnlyCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowLoadedDriversOnlyCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ShowLoadedDriversOnlyCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences;
+
/**
* This <CODE>ICommand</CODE> allows the user to show/hide drivers in the
* Drivers List that cannot be loaded.
@@ -93,7 +94,7 @@
/**
* Execute this command.
- */
+ */
public void execute()
{
SquirrelPreferences prefs = _app.getSquirrelPreferences();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
+
/**
* This <CODE>Action</CODE> displays the Update Manager
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/UpdateCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,6 +26,7 @@
import net.sourceforge.squirrel_sql.fw.gui.JOptionPaneService;
import net.sourceforge.squirrel_sql.fw.util.FileWrapperFactoryImpl;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
+
/**
* This <CODE>ICommand</CODE> allows the user to check for updates and apply changes to the currently
* installed software.
@@ -58,7 +59,7 @@
/**
* Display the software update dialog
- */
+ */
public void execute()
{
UpdateController updateController =
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewFileCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewFileCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewFileCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -31,6 +31,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.FileViewerFactory;
import net.sourceforge.squirrel_sql.client.gui.HtmlViewerSheet;
+
/**
* This <CODE>ICommand</CODE> displays the Help window.
*
@@ -78,7 +79,7 @@
/**
* Display the Dialog
- */
+ */
public void execute() throws BaseException
{
try
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewHelpCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewHelpCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewHelpCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -23,6 +23,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.HelpViewerWindow;
+
/**
* This <CODE>ICommand</CODE> displays the Help window.
*
@@ -56,7 +57,7 @@
/**
* Display the Help window
- */
+ */
public void execute() throws BaseException
{
synchronized (getClass())
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
+
/**
* This <CODE>Action</CODE> displays the Squirrel Logs Window.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.ViewLogsSheet;
+
/**
* This <CODE>ICommand</CODE> displays the Logs window.
*
@@ -51,7 +52,7 @@
/**
* Display the Dialog
- */
+ */
public void execute()
{
ViewLogsSheet.showSheet(_app);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/ObjectTreeSearch.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/ObjectTreeSearch.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/ObjectTreeSearch.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -66,7 +66,7 @@
s_stringMgr.getString(
"ObjectTreeSearch.error.objectnotfound",
candidates.getSearchString());
- JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg);
+ JOptionPane.showMessageDialog(SessionUtils.getOwningFrame(session), msg);
}
}
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,6 +26,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
+
/**
* This <CODE>Action</CODE> allows the user to close all the SQL
* result tabs for the current session.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -22,6 +22,9 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
+
+import javax.swing.*;
+
/**
* This <CODE>ICommand</CODE> closes all the SQL Results tabs
* for the specified session.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -27,8 +27,8 @@
import net.sourceforge.squirrel_sql.client.gui.session.SessionInternalFrame;
import net.sourceforge.squirrel_sql.client.gui.session.SQLInternalFrame;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
-import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
import net.sourceforge.squirrel_sql.client.session.ISession;
+
/**
* This <CODE>Action</CODE> allows the user to close all the SQL
* result windows for the current session.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -22,6 +22,9 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
+
+import javax.swing.*;
+
/**
* This <CODE>ICommand</CODE> closes all the torn off SQL Results
* windows for the specified session.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -22,6 +22,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISession;
+
/**
* This <CODE>ICommand</CODE> closes the specified session.
*
@@ -52,7 +53,7 @@
/**
* Close the session.
- */
+ */
public void execute()
{
_session.getApplication().getSessionManager().closeSession(_session);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionWindowCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionWindowCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CloseSessionWindowCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -56,7 +56,7 @@
/**
* Close the session.
- */
+ */
public void execute()
{
ISessionWidget activeSessionWindow = _session.getActiveSessionWindow();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,6 +26,7 @@
import net.sourceforge.squirrel_sql.client.session.ISession;
import net.sourceforge.squirrel_sql.client.session.properties.SessionProperties;
import net.sourceforge.squirrel_sql.fw.gui.CursorChanger;
+
/**
* This <CODE>Action</CODE> allows the user to commit the current SQL
* transaction.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CommitCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -22,6 +22,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISession;
+
/**
* This <CODE>ICommand</CODE> commits the current SQL transaction.
*
@@ -52,7 +53,7 @@
/**
* Commit the transaction.
- */
+ */
public void execute()
{
_session.commit();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CopyObjectNameCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CopyObjectNameCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/CopyObjectNameCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -27,6 +27,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
+
/**
* This <CODE>Action</CODE> will copy the object names of all objects
* currently in the object tree and place on the system clipboard.
@@ -75,7 +76,7 @@
/**
* Copy to clipboard.
- */
+ */
public void execute()
{
final StringBuffer buf = new StringBuffer(100);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DeleteTablesCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DeleteTablesCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DeleteTablesCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -105,7 +105,7 @@
/**
* Delete records from the selected tables in the object tree.
- */
+ */
public void execute()
{
ProgressCallBack cb =
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DumpSessionCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DumpSessionCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DumpSessionCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -139,7 +139,7 @@
/**
* Dump the session.
- */
+ */
public void execute()
{
if (_session == null)
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/EditWhereColsCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/EditWhereColsCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/EditWhereColsCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -24,6 +24,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.WindowManager;
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
+
/**
* This <CODE>ICommand</CODE> displays a dialog box that allows the user to
* enter a 'where' clause or an 'order by' clause used when getting data via
@@ -70,7 +71,7 @@
/**
* Display thedialog.
- */
+ */
public void execute()
{
if (_tree != null)
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FilterObjectsAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FilterObjectsAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FilterObjectsAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -4,7 +4,6 @@
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISession;
-import javax.swing.*;
import java.awt.event.ActionEvent;
public class FilterObjectsAction extends SquirrelAction implements ISessionAction
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FormatSQLCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FormatSQLCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/FormatSQLCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -24,6 +24,9 @@
import net.sourceforge.squirrel_sql.fw.util.BaseException;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.fw.util.StringUtilities;
+
+import javax.swing.*;
+
/**
* This command will "quote" an SQL string.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -22,6 +22,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
+
/**
* This <CODE>ICommand</CODE> refreshes the object tree.
*
@@ -53,7 +54,7 @@
/**
* Display the next results tab.
- */
+ */
public void execute()
{
_panel.gotoNextResultsTab();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoPreviousResultsTabCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoPreviousResultsTabCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/GotoPreviousResultsTabCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -19,8 +19,9 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
+import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
+
/**
* Display the previous SQL results tab.
*
@@ -52,7 +53,7 @@
/**
* Display the previous results tab.
- */
+ */
public void execute()
{
_panel.gotoPreviousResultsTab();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,6 +26,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
+
/**
* This <CODE>Action</CODE> will refresh the object tree.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -21,6 +21,7 @@
*/
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
+
/**
* This <CODE>ICommand</CODE> refreshes the object tree.
*
@@ -51,7 +52,7 @@
/**
* Refresh tree.
- */
+ */
public void execute()
{
_tree.refreshTree(true);
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,6 +26,7 @@
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
+
/**
* This <CODE>Action</CODE> will refresh the selected nodes in the object tree.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeItemCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -22,6 +22,7 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
+
/**
* This <CODE>ICommand</CODE> refreshes the selected nodes in the object tree.
*
@@ -52,7 +53,7 @@
/**
* Refresh tree.
- */
+ */
public void execute()
{
_tree.refreshSelectedNodes();
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ReturnResultTabCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ReturnResultTabCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ReturnResultTabCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -20,6 +20,9 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.mainpanel.ResultFrame;
+
+import javax.swing.*;
+
/**
* This <CODE>ICommand</CODE> returns the specifed SQL results
* frame back where it was torn off from.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SQLFilterCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SQLFilterCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SQLFilterCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,6 +26,7 @@
import net.sourceforge.squirrel_sql.client.gui.WindowManager;
import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
import net.sourceforge.squirrel_sql.client.session.ISession;
+
/**
* This <CODE>ICommand</CODE> displays a dialog box that allows the user to
* enter a 'where' clause or an 'order by' clause used when getting data via
@@ -68,7 +69,7 @@
/**
* Display the SQL Filter dialog.
- */
+ */
public void execute()
{
if (_objectTree != null)
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SessionPropertiesCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SessionPropertiesCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SessionPropertiesCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -20,6 +20,7 @@
import net.sourceforge.squirrel_sql.client.gui.WindowManager;
import net.sourceforge.squirrel_sql.client.session.ISession;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
+
/**
* This <CODE>ICommand</CODE> displays a session properties dialog box
* and allows the user to modify the properties.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SetDefaultCatalogCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SetDefaultCatalogCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/SetDefaultCatalogCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -23,6 +23,9 @@
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISession;
+
+import javax.swing.*;
+
/**
* This command will set the default catalog for a session.
*
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLAction.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLAction.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLAction.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -25,6 +25,7 @@
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
import net.sourceforge.squirrel_sql.fw.gui.CursorChanger;
+
/**
* This <CODE>Action</CODE> will convert the current SQL into native
* format and append it to the SQL entry area.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLCommand.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLCommand.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/ShowNativeSQLCommand.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -25,6 +25,9 @@
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
import net.sourceforge.squirrel_sql.client.session.ISession;
import net.sourceforge.squirrel_sql.fw.util.ICommand;
+
+import javax.swing.*;
+
/**
* This command will convert the current SQL into native
* format and append it to the SQL entry area.
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLHistoryController.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLHistoryController.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLHistoryController.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -2,6 +2,7 @@
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
import net.sourceforge.squirrel_sql.client.session.ISession;
+import net.sourceforge.squirrel_sql.client.session.SessionUtils;
import net.sourceforge.squirrel_sql.fw.gui.GUIUtils;
import net.sourceforge.squirrel_sql.fw.gui.SortableTableModel;
import net.sourceforge.squirrel_sql.fw.util.StringManager;
@@ -40,7 +41,7 @@
{
_sqlPanelAPI = sqlPanelAPI;
_sqlHistoryItemWrappers = SQLHistoryItemWrapper.wrap(items);
- _dlg = new SQLHistoryDlg(session.getApplication().getMainFrame(), session.getActiveSessionWindow().getTitle());
+ _dlg = new SQLHistoryDlg((JFrame) SessionUtils.getOwningFrame(session), session.getActiveSessionWindow().getTitle());
GUIUtils.centerWithinParent(_dlg);
Modified: trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTextPanel.java
===================================================================
--- trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTextPanel.java 2012-10-16 10:39:01 UTC (rev 6688)
+++ trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTextPanel.java 2012-10-16 11:34:52 UTC (rev 6689)
@@ -26,7 +26,6 @@
import javax.swing.JTextArea;
-import net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeGeneral;
import net.sourceforge.squirrel_sql.fw.gui.TextPopupMenu;
import net.sourceforge.squirrel_sql.fw.gui.action.BaseAction;
import net.sourceforge.squirrel_sql.fw.gui.action.MakeEditableCommand;
Modified: ...
[truncated message content] |