(String type, String extension)
| 71 | } |
| 72 | |
| 73 | String getPath(String type, String extension) { |
| 74 | name = imp.getTitle(); |
| 75 | SaveDialog sd = new SaveDialog("Save as "+type, name, extension); |
| 76 | name = sd.getFileName(); |
| 77 | if (name==null) |
| 78 | return null; |
| 79 | directory = sd.getDirectory(); |
| 80 | imp.startTiming(); |
| 81 | String path = directory+name; |
| 82 | return path; |
| 83 | } |
| 84 | |
| 85 | /** Saves the image or stack in TIFF format using a save file |
| 86 | dialog. Returns false if the user selects cancel. Equivalent to |
no test coverage detected