Search in sources :

Example 1 with XLSExporter

use of org.eclipse.titanium.metrics.view.XLSExporter in project titan.EclipsePlug-ins by eclipse.

the class ExportAllMetrics method exportInformationForProject.

@Override
protected void exportInformationForProject(final String[] args, final IProject project, final IProgressMonitor monitor) {
    final MetricData data = MetricData.measure(project);
    final RiskLevel r = RiskLevel.NO;
    final String fn = args[0] + project.getName() + ".xls";
    final File file = new File(fn);
    final XLSExporter xlsWriter = new XLSExporter(data);
    xlsWriter.setFile(file);
    xlsWriter.write(r);
}
Also used : XLSExporter(org.eclipse.titanium.metrics.view.XLSExporter) RiskLevel(org.eclipse.titanium.metrics.utils.RiskLevel) File(java.io.File) MetricData(org.eclipse.titanium.metrics.MetricData)

Aggregations

File (java.io.File)1 MetricData (org.eclipse.titanium.metrics.MetricData)1 RiskLevel (org.eclipse.titanium.metrics.utils.RiskLevel)1 XLSExporter (org.eclipse.titanium.metrics.view.XLSExporter)1