(String contextProp)
| 33 | private final String contextProp; |
| 34 | |
| 35 | RecentFileList(String contextProp) |
| 36 | { |
| 37 | this.contextProp = contextProp; |
| 38 | |
| 39 | URI userDir = new File(ConfigurationSettings.getUserDir()).toURI(); |
| 40 | var recentFiles = PCGenSettings.getInstance().getStringList(contextProp); |
| 41 | recentFiles.stream() |
| 42 | .sorted(Collections.reverseOrder()) |
| 43 | .map(userDir::resolve) |
| 44 | .map(File::new) |
| 45 | .forEach(this::addRecentFile); |
| 46 | } |
| 47 | |
| 48 | private void updateRecentFileProp() |
| 49 | { |
nothing calls this directly
no test coverage detected