Returns the selected file name.
()
| 270 | |
| 271 | /** Returns the selected file name. */ |
| 272 | public String getFileName() { |
| 273 | if (name!=null) { |
| 274 | if (IJ.recording() && dir!=null) |
| 275 | Recorder.recordPath(title, dir+name); |
| 276 | OpenDialog.setLastName(name); |
| 277 | } |
| 278 | return name; |
| 279 | } |
| 280 | |
| 281 | public static String getPath(ImagePlus imp, String extension) { |
| 282 | String title = imp!=null?imp.getTitle():"Untitled"; |
no test coverage detected