use of org.eclipse.titanium.graph.generators.ComponentGraphGenerator in project titan.EclipsePlug-ins by eclipse.
the class ComponentGraphEditor method initGeneratorAndHandler.
@Override
protected void initGeneratorAndHandler(final Composite parent) {
handler = new GraphHandler();
generator = new ComponentGraphGenerator(((IFileEditorInput) getEditorInput()).getFile().getProject(), errorHandler);
}
use of org.eclipse.titanium.graph.generators.ComponentGraphGenerator in project titan.EclipsePlug-ins by eclipse.
the class SaveComponentNet method exportInformationForProject.
@Override
protected void exportInformationForProject(final String[] args, final IProject project, final IProgressMonitor monitor) {
final ErrorHandler errorHandler = new ConsoleErrorHandler();
final ComponentGraphGenerator generator = new ComponentGraphGenerator(project, errorHandler);
try {
generator.generateGraph();
GraphHandler.saveGraphToPajek(generator.getGraph(), args[0] + project.getName() + ".net");
} catch (Exception e) {
errorHandler.reportException("Error while exporting", e);
}
}
use of org.eclipse.titanium.graph.generators.ComponentGraphGenerator in project titan.EclipsePlug-ins by eclipse.
the class SaveComponentDot method exportInformationForProject.
@Override
protected void exportInformationForProject(final String[] args, final IProject project, final IProgressMonitor monitor) {
final ErrorHandler errorHandler = new ConsoleErrorHandler();
final ComponentGraphGenerator generator = new ComponentGraphGenerator(project, errorHandler);
try {
generator.generateGraph();
GraphHandler.saveGraphToDot(generator.getGraph(), args[0] + project.getName() + ".dot", project.getName());
} catch (Exception e) {
errorHandler.reportException("Error while exporting", e);
}
}
use of org.eclipse.titanium.graph.generators.ComponentGraphGenerator 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);
}
}
Aggregations