use of uk.ac.sussex.gdsc.smlm.ij.plugins.ResultsManager.MemoryResultsList in project GDSC-SMLM by aherbert.
the class TraceExporter method run.
@Override
public void run(String arg) {
SmlmUsageTracker.recordPlugin(this.getClass(), arg);
final MemoryResultsList items = new MemoryResultsList(MemoryPeakResults::hasId);
if (items.isEmpty()) {
IJ.error(TITLE, "No traced localisations in memory");
return;
}
// Get input options
if (!showDialog()) {
return;
}
final ArrayList<MemoryPeakResults> allResults = new ArrayList<>();
// Pick multiple input datasets together using a list box.
if (!showMultiDialog(allResults, items)) {
return;
}
for (final MemoryPeakResults results : allResults) {
export(results);
}
}
Aggregations