Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.ErrorDialog.open()


              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


                    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

        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

        }
       
       PlatformGIS.syncInDisplayThread(new Runnable(){
            public void run() {
                Dialog dialog = new ErrorDialog(Display.getDefault().getActiveShell(), Messages.ExceptionDisplayer_very_informative_error, message, multi, IStatus.ERROR);
                dialog.open();
            }
        });
    }
}
View Full Code Here

        "the quick brown fox jumps over the lazy dogs back\n" +
        "message with\n" +
        "multiple lines\n");
    IStatus status = new Status(IStatus.ERROR, ToolPlugin.PLUGIN_ID, "Status message", reposEx);
    ErrorDialog ed = new ErrorDialog(Display.getDefault().getActiveShell(), "Title for Error Dialog", "terse error message", status, 0);
    ed.open();
//    ErrorDialog.openError(Display.getDefault().getActiveShell(), "Title for Error Dialog", "terse error message", status);
  }

}
View Full Code Here

                clipboard.dispose();
              }
              return super.close();
            }
          };
      dialog.open();
    }
  }
}
View Full Code Here

      modelFileText.setText(configuration.getAttribute(ModelLaunchDelegate.VAR_ROOT_MODEL_PATH, ""));
      launchEverythingButton.setEnabled(configuration.getAttribute(ModelLaunchDelegate.VAR_ROOT_LAUNCH_EVERYTHING, true));
    } catch (CoreException e) {
      Dialog d = new ErrorDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(),
          "Configuration Error", "Error while configuring launch.", new Status(IStatus.ERROR, "q_impress", e.getMessage(), e), 0);
      d.open();
   
   
    dialogChanged();
  }
View Full Code Here

            PortfolioPlugin.log(e);
            ErrorDialog dialog = new ErrorDialog(Display.getDefault().getActiveShell(), Messages.LabelError,
                            Messages.LabelInputValidationFailed, new Status(Status.ERROR, PortfolioPlugin.PLUGIN_ID,
                                            e.getMessage(), e), IStatus.ERROR);
            dialog.setBlockOnOpen(false);
            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.