Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
taskRunner.runOrFail(
() -> view.setLabelText("Please wait..."),
() -> {
try (
final FileSystem zipfs
= FileSystems.newFileSystem(uri, ZIPFS_ENV);
) {
final boolean exists
= Files.exists(zipfs.getPath("/info.json"));
if (!exists)
throw new NoSuchFileException("/info.json");
tabPresenter = loadPresenter(zipfs);
}
},
() -> loadTab(path),
this::handleLoadFileError
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment