save(path);
}
public boolean save(String path) {
if (IJ.isResultsWindow()) {
TextPanel tp = IJ.getTextPanel();
if (tp!=null) {
if (!tp.saveAs(path))
return false;
}
} else {
ResultsTable rt = ResultsTable.getResultsTable();
if (rt==null || rt.getCounter()==0)