Changeset 1447 for trunk/src/org/expeditee/gui/management/ResourceUtil.java
- Timestamp:
- 11/12/19 14:37:28 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/management/ResourceUtil.java
r1446 r1447 26 26 * Attempts to relativise a image path using expeditee.home (FrameIO.PARENT_FOLDER). 27 27 * @param path The path to attempt to relativise 28 * @return Returns the most relativised path if one exists, otherwise returns a copy ofthe ref parameter passed in.28 * @return Returns the most relativised path if one exists, otherwise returns the ref parameter passed in. 29 29 */ 30 30 public static Path relativiseImagePath(Path path) { … … 49 49 50 50 return null; 51 } 52 53 public static Path getImageSaveFileLocation(Frame context) { 54 List<String> directories = ResourceManager.images.getDirectories(context); 55 if (directories.isEmpty()) { 56 return Paths.get(FrameIO.PARENT_FOLDER).toAbsolutePath(); 57 } else { 58 return Paths.get(directories.get(0)); 59 } 51 60 } 52 61
Note:
See TracChangeset
for help on using the changeset viewer.