Exemplo n.º 1
0
 private void deleteAttachments() {
   Iterator iterator = ((IStructuredSelection) viewer.getSelection()).iterator();
   while (iterator.hasNext()) {
     ReportTemplateMetaData sel = (ReportTemplateMetaData) iterator.next();
     try {
       ServiceFactory.lookupReportDepositService().remove(sel, Locale.getDefault().getLanguage());
     } catch (ReportDepositException e) {
       ExceptionUtil.log(e, "Error deleting Reporttemplate:\t" + sel.getOutputname());
     }
   }
 }
Exemplo n.º 2
0
 private IReportDepositService getReportService() {
   return ServiceFactory.lookupReportDepositService();
 }