protected ForgeService getForgeService() {
return injector.getInstance(ForgeService.class);
}
};
boolean result = executeExport(exportOp);
Diagnostic diag = exportOp.getDiagnostic();
if(diag.getSeverity() == Diagnostic.ERROR) {
Exception e = diag.getException();
ErrorDialog.openError(
getContainer().getShell(), DataTransferMessages.DataTransfer_exportProblems, null, // no special message
UIPlugin.createStatus(IStatus.ERROR, diag.toString(), e));
}
else
MessageDialog.openInformation(
getContainer().getShell(), DataTransferMessages.DataTransfer_information, diag.toString());
return result;
}
catch(CoreException e) {
ErrorDialog.openError(
getContainer().getShell(), DataTransferMessages.DataTransfer_exportProblems, null, // no special message