public static IStatus runIt( IProgressMonitor monitor, String jobName, Collection<TeamWorkFlowArtifact> teamArts, IAttributeType attributeType) { XResultData rd = new XResultData(); try { if (teamArts.isEmpty()) { throw new OseeStateException("No Actions/Workflows Specified"); } retrieveData(monitor, teamArts, attributeType, rd); if (rd.toString().equals("")) { rd.log("No Problems Found"); } final String html = XResultDataUI.getReport(rd, jobName) .getManipulatedHtml(Arrays.asList(Manipulations.NONE)); final String title = jobName; Displays.pendInDisplayThread( new Runnable() { @Override public void run() { Result result = new HtmlExportTable(title, html, true, false).exportCsv(); if (result.isFalse()) { AWorkbench.popup(result); return; } AWorkbench.popup( title, "Completed " + title + "\n\nFile saved to " + System.getProperty("user.home") + File.separator + "table.csv"); } }); monitor.done(); return Status.OK_STATUS; } catch (Exception ex) { OseeLog.log(Activator.class, Level.SEVERE, ex); return new Status(IStatus.ERROR, Activator.PLUGIN_ID, -1, "Failed", ex); } }