Examples of ErrorDialog


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

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

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

          }
        }
        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

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

          _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

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

      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

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

            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

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

    //{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

Examples of org.apache.cxf.management.web.browser.client.ui.ErrorDialog

        injector.getResources().css().ensureInjected();
       
        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {

            public void onUncaughtException(@Nonnull final Throwable throwable) {
                ErrorDialog errorDialog = injector.getErrorDialog();
                errorDialog.setException(throwable);
                errorDialog.center();
            }
        });
       
        injector.getDispatcher().start();
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.ErrorDialog

  private void handleOutOfMemoryError(final OutOfMemoryError error) {
    JobRunner.runInUIThread(null, new Runnable() {
      public void run() {
        try {
          ErrorDialog dialog = new ErrorDialog(OwlUI.getPrimaryShell(), Messages.DefaultStatusHandler_ERROR, Messages.DefaultStatusHandler_ERROR_OUT_OF_MEMORY, Activator.getDefault().createErrorStatus(error.getMessage()), IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR) {
            @Override
            protected void createButtonsForButtonBar(Composite parent) {
              createButton(parent, IDialogConstants.OK_ID, IDialogConstants.YES_LABEL, true);
              createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.NO_LABEL, false);
            }
          };

          if (dialog.open() == IDialogConstants.OK_ID)
            emergencyClose();
        }

        /* Serious problem - emergency close */
        catch (Error err) {
View Full Code Here

Examples of org.eclipse.jface.dialogs.ErrorDialog

        // Create the wizard and pre-validate
        final ResolveJob job = new ResolveJob(model);
        IStatus validation = job.validateBeforeRun();
        if (!validation.isOK()) {
            ErrorDialog errorDialog = new ErrorDialog(parentShell, "Validation Problem", null, validation, IStatus.ERROR | IStatus.WARNING) {
                @Override
                protected void createButtonsForButtonBar(Composite parent) {
                    // create OK, Cancel and Details buttons
                    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false);
                    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, true);
                    createDetailsButton(parent);
                }
            };
            int response = errorDialog.open();
            if (Window.CANCEL == response || validation.getSeverity() >= IStatus.ERROR)
                return;
        }

        // Add the operation to perform at the end of the resolution job (i.e.,
View Full Code Here

Examples of org.eclipse.jface.dialogs.ErrorDialog

            multi.add(status);
        }

        PlatformGIS.syncInDisplayThread(new Runnable(){
            public void run() {
                Dialog dialog = new ErrorDialog(Display.getDefault().getActiveShell(), Messages.ErrorManager_very_informative_error,
                        m, multi, IStatus.ERROR);
                dialog.open();
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.