Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Opening/Closing Mechanism for Zip Files #1413

Draft
wants to merge 35 commits into
base: master
Choose a base branch
from

Commits on Sep 25, 2024

  1. Proposal: Opening/Closing Mechanism for Zip Files

    The Eclipse IDE has no built in functionality to open Zip Files and read or manipulate their content. Because of this, other operations like searching inside of Zip Files or comparing two Zip Files were also not possible.
    
    This pull request introduces a mechanism for handling Zip Files within the Eclipse workspace, enhancing the functionality to read and write Zip files. The primary goal is to provide a seamless experience for developers working with zip archives directly within Eclipse.
    
    Zip files must be opened manually within the workspace by using the new command "Open Zip File" in the menu when right clicking the zip file. It is also possible to open nested zip files.
    
    Zip Files are opened by replacing the file in the workspace with a linked folder that reads and writes the Zip File in the file system. By closing the Zip FIle, the linked folder will be deleted and the file can be seen in the workspace again.
    
    Please note that only ZIP Archives are supported in this current implementation. Other archive types can be added in future improvements. Also linked Zip Files can not be opened with this implementation because the Zip File must be local.
    
    An additional PR for the repository **eclipse.platform.ui** that grants access to the open/close mechanism for zip files over UI can be found in the following:
    
    eclipse-platform/eclipse.platform.ui#1947
    
    Co-Authored-By: David Erdös <[email protected]>
    
    fix rebase
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4d3017d View commit details
    Browse the repository at this point in the history
  2. remove progressMonitor and ProgressDialog

    The progress monitor used in ZipFileTransformer#openZipFile was necessary in previous versions because performance issues were present. now it is useless and is thus be removed.
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    e200d61 View commit details
    Browse the repository at this point in the history
  3. remove parametrization for tests

    parametrization for tests is removed because it makes trouble building a good test name within build jobs
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    6475ab0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8c3666 View commit details
    Browse the repository at this point in the history
  5. make use of getPluginID()

    CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    2b6bbb8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    828d139 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    33c6011 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    891d726 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    86bce29 View commit details
    Browse the repository at this point in the history
  10. New test for copy bug

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    b4f4f5c View commit details
    Browse the repository at this point in the history
  11. temporary workaround for gender issues

    temporary workaround for CloseTest#testCloseZipFileWithZipFileUnderneath
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    aae7724 View commit details
    Browse the repository at this point in the history
  12. fix MoveTest

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    f03138b View commit details
    Browse the repository at this point in the history
  13. new test concurrencyTest

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    d1bd079 View commit details
    Browse the repository at this point in the history
  14. Introduce Lock mechanism to ZipFileStore

    This change fixes various problems regarding ClosedZipFileSystemException, NoZipFileSystemFoundException and ZipFileSystemAlreadyExistsException
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    2f78e29 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1c30966 View commit details
    Browse the repository at this point in the history
  16. fix deadlock

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    10b8ac9 View commit details
    Browse the repository at this point in the history
  17. delete implicit line

    The default value of create is false
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    e260557 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c632ff5 View commit details
    Browse the repository at this point in the history
  19. Allow WAR and JAR files

    All ZIP-based zip files like zip, jar and war can be put on the classpath of the project. To avoid UI bugs, only zip files can be opened that are not added to the project's classpath. This commit introduces a check for the classpath.
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    8b6d7d0 View commit details
    Browse the repository at this point in the history
  20. remove Todo

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    5cae0ba View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    87e0a69 View commit details
    Browse the repository at this point in the history
  22. new test for move bug

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    6e1efdd View commit details
    Browse the repository at this point in the history
  23. Revert "new test concurrencyTest"

    This reverts commit cc797ed.
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    da1b006 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    129fc4b View commit details
    Browse the repository at this point in the history
  25. revert accidental changes

    CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    c37d5e8 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    551edba View commit details
    Browse the repository at this point in the history
  27. Revert "Allow WAR and JAR files"

    This reverts commit 9e3d212.
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    5e86e76 View commit details
    Browse the repository at this point in the history
  28. make opening zip files atomic

    to make sure that clients like JDT do not have a behaviour change or even errors the code for opening zip files is encapsulated in a IWorkspaceRunnable.
    This allows opening zip files on the class path.
    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    585d603 View commit details
    Browse the repository at this point in the history
  29. add null check for locationURI

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4844519 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    12c7a94 View commit details
    Browse the repository at this point in the history
  31. Refactor tests

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fc3ca17 View commit details
    Browse the repository at this point in the history
  32. add proper viewer refresh

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    662e26c View commit details
    Browse the repository at this point in the history
  33. atomic zip file open working

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4202dea View commit details
    Browse the repository at this point in the history
  34. Refactor

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    56817fb View commit details
    Browse the repository at this point in the history
  35. revert new file .project

    Michael5601 authored and CodeLtDave committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ba2cef4 View commit details
    Browse the repository at this point in the history