Package net.sourceforge.squirrel_sql.fw.gui

Examples of net.sourceforge.squirrel_sql.fw.gui.ErrorDialog$MoreButtonHandler


   * @param msg
   *           The error msg.
   */
  public void showErrorDialog(String msg)
  {
    new ErrorDialog(getMainFrame(), msg).setVisible(true);
  }
View Full Code Here


   * @param th
   *           The Throwable that caused the error
   */
  public void showErrorDialog(Throwable th)
  {
    new ErrorDialog(getMainFrame(), th).setVisible(true);
  }
View Full Code Here

   * @param th
   *           The Throwable that caused the error
   */
  public void showErrorDialog(String msg, Throwable th)
  {
    new ErrorDialog(getMainFrame(), msg, th).setVisible(true);
  }
View Full Code Here

      {
         SwingUtilities.invokeLater(new Runnable()
         {
            public void run()
            {
               new ErrorDialog(_app.getMainFrame(), msg, th).setVisible(true);
            }
         });
      }
   }
View Full Code Here

          }
        }
        else
        {
          final String msg = s_stringMgr.getString("DumpApplicationAction.success", outFile.getAbsolutePath());
          ErrorDialog dlg = new ErrorDialog(getApplication().getMainFrame(), msg);
          // i18n[DumpApplicationAction.titleSuccess=Dump successful]
          dlg.setTitle(s_stringMgr.getString("DumpApplicationAction.titleSuccess"));
          dlg.setVisible(true);
        }
      }
      catch (Throwable ex)
      {
        final String msg = s_stringMgr.getString("DumpApplicationAction.failure");
View Full Code Here

          _curlogToDisplay.message
        };

      // i18n[LogPanel.logMsg=Logged by {0} at {1}:\n\n {2}]
      String extMsg = s_stringMgr.getString("LogPanel.logMsg", params);
      ErrorDialog errorDialog = new ErrorDialog(_app.getMainFrame(), extMsg, _curlogToDisplay.throwable);

      String title;

      switch(_curlogToDisplay.logType)
      {
        case LOG_TYPE_INFO:
          // i18n[LogPanel.titleInfo=Last log entry (Entry type: Info)]
          title = s_stringMgr.getString("LogPanel.titleInfo");
          break;
        case LOG_TYPE_WARN:
          // i18n[LogPanel.titleWarn=Last log entry (Entry type: Warning)]
          title = s_stringMgr.getString("LogPanel.titleWarn");
          break;
        case LOG_TYPE_ERROR:
          // i18n[LogPanel.titleError=Last log entry (Entry type: ERROR)]
          title = s_stringMgr.getString("LogPanel.titleError");
          break;
        default:
          // i18n[LogPanel.titleUnknown=Last log entry (Entry type: Unknown)]
          title = s_stringMgr.getString("LogPanel.titleUnknown");
          break;
      }

      errorDialog.setTitle(title);
      errorDialog.setVisible(true);
    }
  }
View Full Code Here

      final String script = createExecutableScriptFromStatements(stmts, false);
      GUIUtils.processOnSwingEventThread(new Runnable()
      {
        public void run()
        {
          final ErrorDialog showSQLDialog;
          if (_parentDialog != null)
            showSQLDialog = new ErrorDialog(_parentDialog, script);
          else
            showSQLDialog = new ErrorDialog(_session.getApplication().getMainFrame(), script);
          showSQLDialog.setTitle(_dialogTitle);
          showSQLDialog.setVisible(true);
        }
      });
    }
View Full Code Here

            StringBuilder script = new StringBuilder();
            for (String stmt : stmts) {
                script.append(stmt).append("\n\n");
            }

            ErrorDialog sqldialog = new ErrorDialog(_parentDialog, script.substring(0, script.length() - 2));
            sqldialog.setTitle(_dialogTitle);
            sqldialog.setVisible(true);
        }
View Full Code Here

    //{2}\n
    //Sessions garbage collected:\n
    //==================================================\n
    //{3}\n]
    String msg = s_stringMgr.getString("MemoryPanel.gcStatus", (Object[])params);
    ErrorDialog errorDialog = new ErrorDialog(_app.getMainFrame(), msg);


    // i18n[MemoryPanel.statusDialogTitle=Session garbage collection status]
    errorDialog.setTitle(s_stringMgr.getString("MemoryPanel.statusDialogTitle"));
    errorDialog.setVisible(true);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.gui.ErrorDialog$MoreButtonHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.