use of org.gephi.desktop.datalab.utils.GraphFileExporterBuilderDecorator in project gephi by gephi.
the class DataTableTopComponent method exportCurrentTable.
@Override
public void exportCurrentTable() {
ExporterSpreadsheet.ExportTable currentTable = isEdgeTableMode() ? ExporterSpreadsheet.ExportTable.EDGES : ExporterSpreadsheet.ExportTable.NODES;
GraphFileExporterUI fileExporterUI = new GraphFileExporterUI();
List<GraphFileExporterBuilder> builders = new ArrayList<>();
for (GraphFileExporterBuilder builder : Lookup.getDefault().lookupAll(GraphFileExporterBuilder.class)) {
if (builder.getName().toLowerCase().startsWith("spreadsheet")) {
builders.add(new GraphFileExporterBuilderDecorator(builder, currentTable));
}
}
fileExporterUI.action(builders.toArray(new GraphFileExporterBuilder[0]));
}
Aggregations