If one ROI is selected, it is saved as a .roi file, if multiple (or no) ROIs are selected, they are saved as a .zip ROI set. Returns 'true' if the save operation was succesful. @see #setSelectedIndexes
(String path)
| 962 | * @see #setSelectedIndexes |
| 963 | */ |
| 964 | public boolean save(String path) { |
| 965 | if (getCount()==0) |
| 966 | return error("The selection list is empty."); |
| 967 | int[] indexes = getIndexes(); |
| 968 | if (indexes.length>1) |
| 969 | return saveMultiple(indexes, path); |
| 970 | else |
| 971 | return saveOne(indexes, path); |
| 972 | |
| 973 | } |
| 974 | |
| 975 | boolean saveOne(int[] indexes, String path) { |
| 976 | if (indexes.length==0) |
no test coverage detected