use of org.gephi.io.exporter.api.FileType in project gephi by gephi.
the class GraphFileExporterUI method getExporter.
private GraphFileExporterBuilder getExporter(DialogFileFilter fileFilter) {
//Find fileFilter
for (GraphFileExporterBuilder graphFileExporter : Lookup.getDefault().lookupAll(GraphFileExporterBuilder.class)) {
for (FileType fileType : graphFileExporter.getFileTypes()) {
DialogFileFilter tempFilter = new DialogFileFilter(fileType.getName());
tempFilter.addExtensions(fileType.getExtensions());
if (tempFilter.equals(fileFilter)) {
return graphFileExporter;
}
}
}
return null;
}
Aggregations