Skip to content

Instantly share code, notes, and snippets.

@fge
Created January 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fge/7ccdd0bc35faa4fbe386 to your computer and use it in GitHub Desktop.
Save fge/7ccdd0bc35faa4fbe386 to your computer and use it in GitHub Desktop.
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