Ejemplo n.º 1
0
  protected void handleFinishException(Shell shell, InvocationTargetException e) {
    Diagnostic diagnostic = BasicDiagnostic.toDiagnostic(e);
    // log(diagnostic);

    String title = "Finish Exception"; // $NON-NLS-1$
    String message = "Wizard.op_error.message"; // $NON-NLS-1$
    DiagnosticDialog.open(shell, title, message, diagnostic);
  }
Ejemplo n.º 2
0
  public void setOriginalGenModelFile(IFile originalGenModelFile) {
    this.originalGenModelFile = originalGenModelFile;
    if (originalGenModelFile != null) {
      setWindowTitle(ImporterPlugin.INSTANCE.getString("_UI_ReloadWizard_title"));
      try {
        getModelImporter().defineOriginalGenModelPath(originalGenModelFile.getFullPath());
      } catch (DiagnosticException exception) {
        String message =
            getModelImporter().getOriginalGenModel() != null
                ? ImporterPlugin.INSTANCE.getString("_UI_ProblematicModel_message")
                : ImporterPlugin.INSTANCE.getString("_UI_InvalidModel_message");

        Diagnostic diagnostic = exception.getDiagnostic();
        DiagnosticDialog.open(
            getShell(),
            GenModelEditPlugin.INSTANCE.getString("_UI_ModelProblems_title"),
            message,
            diagnostic);
      }
    }
  }