use of org.erlide.cover.core.CoverRunner in project erlide_eclipse by erlang.
the class CoverLaunchConfigurationDelegate method launch.
@Override
public void launch(final ILaunchConfiguration config, final String mode, final ILaunch launch, final IProgressMonitor monitor) throws CoreException {
try {
super.launch(config, mode, launch, monitor);
CoverLaunchData coverData;
coverData = new CoverLaunchData(config);
final CoverBackend coverBackend = CoverBackend.getInstance();
coverBackend.setBackend(backend);
coverBackend.initialize(coverData);
coverBackend.runCoverageAnalysis(new CoverRunner());
} catch (final CoreException e) {
ErlLogger.error(e);
} catch (final CoverException e) {
if (CoverBackend.getInstance().getListeners().isEmpty()) {
throw new RuntimeException(e.getMessage());
}
CoverBackend.getInstance().handleError(e.getMessage());
}
}
Aggregations