use of org.eclipse.titanium.error.ErrorHandler in project titan.EclipsePlug-ins by eclipse.
the class SonarDataExporter method exportComponentDot.
private void exportComponentDot(final URI exportDir) {
final URI filePath = URIUtil.append(exportDir, "component_graph.dot");
final ErrorHandler errorHandler = new ConsoleErrorHandler();
final GraphGenerator generator = new ComponentGraphGenerator(project, errorHandler);
try {
generator.generateGraph();
GraphHandler.saveGraphToDot(generator.getGraph(), filePath.getPath(), project.getName());
} catch (Exception e) {
errorHandler.reportException("Error while exporting the component graph", e);
}
}
use of org.eclipse.titanium.error.ErrorHandler in project titan.EclipsePlug-ins by eclipse.
the class SonarDataExporter method exportModuleDot.
private void exportModuleDot(final URI exportDir) {
final URI filePath = URIUtil.append(exportDir, "module_graph.dot");
final ErrorHandler errorHandler = new ConsoleErrorHandler();
final GraphGenerator generator = new ModuleGraphGenerator(project, errorHandler);
try {
generator.generateGraph();
GraphHandler.saveGraphToDot(generator.getGraph(), filePath.getPath(), project.getName());
} catch (Exception e) {
errorHandler.reportException("Error while exporting the module graph", e);
}
}
Aggregations