@Override protected void execute(IProgressMonitor progressMonitor) throws CoreException { Monitor monitor = BasicMonitor.toMonitor(progressMonitor); try { doPerformFinishDiagnostic = null; doPerformFinishDiagnostic = doPerformFinish(monitor); } catch (Exception exception) { DiagnosticException diagnosticException = exception instanceof DiagnosticException ? (DiagnosticException)exception : new DiagnosticException(ConverterUtil.createErrorDiagnostic(exception, true)); throw DiagnosticException.toCoreException(diagnosticException); } finally { monitor.done(); } } };
public StatusWrapper(DiagnosticException diagnosticException) { throwable = diagnosticException; diagnostic = diagnosticException.getDiagnostic(); }
throw new DiagnosticException(new BasicDiagnostic(Diagnostic.ERROR, ExporterPlugin.ID, 0, ExporterPlugin.INSTANCE.getString("_UI_NoPackagesToExport_error"), null));
throw DiagnosticException.toCoreException(exception);
throw new WrappedException(new DiagnosticException(diagnostic));
throw DiagnosticException.toCoreException(exception);
throw new WrappedException(new DiagnosticException(diagnostic));
return ((DiagnosticException)throwable).getDiagnostic();
throw DiagnosticException.toCoreException(exception);
if (diagnostic.getSeverity() != Diagnostic.OK) throw new DiagnosticException(diagnostic); ImporterPlugin.INSTANCE.getString("_UI_LoadProblem_title"), null); throw new DiagnosticException(diagnostic);
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); } } }
throw DiagnosticException.toCoreException(exception);
if (diagnostic.getSeverity() != Diagnostic.OK) throw new DiagnosticException(diagnostic);
Diagnostic diagnostic = exception.getDiagnostic(); DiagnosticDialog.openProblem (getShell(),
if (problems != null) throw new DiagnosticException(problems);