Search in sources :

Example 1 with CSVExportUI

use of org.gephi.desktop.datalab.general.actions.CSVExportUI in project gephi by gephi.

the class DataTableTopComponent method showCSVExportUI.

private void showCSVExportUI(Table table, boolean edgesTable, String fileName) {
    CSVExportUI csvUI = new CSVExportUI(table, edgesTable);
    DialogDescriptor dd = new DialogDescriptor(csvUI, csvUI.getDisplayName());
    if (DialogDisplayer.getDefault().notify(dd).equals(DialogDescriptor.OK_OPTION)) {
        DataTableTopComponent.exportTableAsCSV(this, this.visibleOnly, table, edgesTable, csvUI.getSelectedSeparator(), csvUI.getSelectedCharset(), csvUI.getSelectedColumnsIndexes(), fileName);
    }
    csvUI.unSetup();
}
Also used : DialogDescriptor(org.openide.DialogDescriptor) CSVExportUI(org.gephi.desktop.datalab.general.actions.CSVExportUI)

Aggregations

CSVExportUI (org.gephi.desktop.datalab.general.actions.CSVExportUI)1 DialogDescriptor (org.openide.DialogDescriptor)1