Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. taskRunner.runOrFail(
  2. () -> view.setLabelText("Please wait..."),
  3. () -> {
  4. try (
  5. final FileSystem zipfs
  6. = FileSystems.newFileSystem(uri, ZIPFS_ENV);
  7. ) {
  8. final boolean exists
  9. = Files.exists(zipfs.getPath("/info.json"));
  10. if (!exists)
  11. throw new NoSuchFileException("/info.json");
  12. tabPresenter = loadPresenter(zipfs);
  13. }
  14. },
  15. () -> loadTab(path),
  16. this::handleLoadFileError
  17. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement