Skip to content

Commit b5e266a

Browse files
committed
DefaultRecentFileService: fix OpenFile package
This will theoretically make the recent file menu entries work again, though it has not been tested in quite some time. As the FIXME notes, the current approach is still wrong, in that it requires scijava-plugins-commands on the classpath for the DefaultRecentMenuService to function properly. What we should really do instead is: * Provide an OpenRecentFile command which leans on the IOService; or * Migrate the OpenFile command into scijava-common itself. Either way, not an urgent problem, so the FIXME stays for the moment.
1 parent bf3a79c commit b5e266a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/scijava/io/DefaultRecentFileService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ protected void onEvent(final IOEvent event) {
189189

190190
/** Creates a {@link ModuleInfo} to reopen data at the given path. */
191191
private ModuleInfo createInfo(final String path) {
192-
// CTR FIXME: Avoid circular dependency between ij-core and ij-commands.
193-
final String commandClassName = "imagej.plugins.commands.io.OpenFile";
192+
// CTR FIXME: Avoid circular (and compile-time-unsafe) dependency between
193+
// scijava-common and scijava-plugins-commands.
194+
final String commandClassName = "org.scijava.plugins.commands.io.OpenFile";
194195
final CommandInfo info = new CommandInfo(commandClassName);
195196

196197
// hard code path to open as a preset

0 commit comments

Comments
 (0)