From 0f84d0c9900a267bdda9defb2f7c6bc38845c695 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 7 Nov 2022 14:49:56 +0100 Subject: [PATCH 01/60] adapt to new APIs --- .../Cryptomator_Windows_Dev.xml | 2 +- pom.xml | 6 +- .../org/cryptomator/common/CommonsModule.java | 15 +- .../cryptomator/common/mount/MountModule.java | 30 +++ .../WindowsDriveLetters.java | 2 +- .../AvailableDriveLetterChooser.java | 29 --- .../mountpoint/CustomDriveLetterChooser.java | 42 ---- .../mountpoint/CustomMountPointChooser.java | 167 ---------------- .../InvalidMountPointException.java | 16 -- .../mountpoint/MacVolumeMountChooser.java | 42 ---- .../common/mountpoint/MountPointChooser.java | 138 ------------- .../mountpoint/MountPointChooserModule.java | 64 ------ .../common/mountpoint/MountPointHelper.java | 122 ------------ .../TemporaryMountPointChooser.java | 87 -------- .../cryptomator/common/settings/Settings.java | 9 + .../common/settings/SettingsJsonAdapter.java | 19 +- .../common/settings/VaultSettings.java | 20 +- .../common/vaults/AbstractVolume.java | 46 ----- .../cryptomator/common/vaults/AutoLocker.java | 4 +- .../common/vaults/DefaultMountFlags.java | 14 -- .../common/vaults/DokanyVolume.java | 95 --------- .../cryptomator/common/vaults/FuseVolume.java | 133 ------------- .../vaults/LockNotCompletedException.java | 12 -- .../common/vaults/MountPointRequirement.java | 33 ---- .../org/cryptomator/common/vaults/Vault.java | 135 +++++++------ .../common/vaults/VaultComponent.java | 3 +- .../common/vaults/VaultModule.java | 139 ------------- .../org/cryptomator/common/vaults/Volume.java | 102 ---------- .../common/vaults/WebDavVolume.java | 170 ---------------- .../ui/common/HostServiceRevealer.java | 6 +- .../cryptomator/ui/common/VaultService.java | 18 +- .../ui/fxapp/FxApplicationTerminator.java | 8 +- .../ui/lock/LockForcedController.java | 2 +- .../org/cryptomator/ui/lock/LockWorkflow.java | 14 +- .../VolumePreferencesController.java | 27 +-- .../ui/traymenu/AwtTrayMenuController.java | 5 + .../UnlockInvalidMountPointController.java | 28 --- .../cryptomator/ui/unlock/UnlockWorkflow.java | 49 +---- .../vaultoptions/MountOptionsController.java | 84 ++++---- .../fxml/unlock_invalid_mount_point.fxml | 3 - .../resources/fxml/vault_detail_unlocked.fxml | 9 +- .../resources/fxml/vault_options_mount.fxml | 27 +-- .../CustomMountPointChooserTest.java | 187 ------------------ .../common/vaults/VaultModuleTest.java | 3 + 44 files changed, 265 insertions(+), 1901 deletions(-) create mode 100644 src/main/java/org/cryptomator/common/mount/MountModule.java rename src/main/java/org/cryptomator/common/{vaults => mount}/WindowsDriveLetters.java (98%) delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/AvailableDriveLetterChooser.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/CustomDriveLetterChooser.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/CustomMountPointChooser.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/InvalidMountPointException.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/MacVolumeMountChooser.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/MountPointChooser.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/MountPointChooserModule.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/MountPointHelper.java delete mode 100644 src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/AbstractVolume.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/DefaultMountFlags.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/DokanyVolume.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/FuseVolume.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/LockNotCompletedException.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/MountPointRequirement.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/Volume.java delete mode 100644 src/main/java/org/cryptomator/common/vaults/WebDavVolume.java delete mode 100644 src/test/java/org/cryptomator/common/mountpoint/CustomMountPointChooserTest.java diff --git a/.idea/runConfigurations/Cryptomator_Windows_Dev.xml b/.idea/runConfigurations/Cryptomator_Windows_Dev.xml index 4bc869723..82376d79c 100644 --- a/.idea/runConfigurations/Cryptomator_Windows_Dev.xml +++ b/.idea/runConfigurations/Cryptomator_Windows_Dev.xml @@ -2,7 +2,7 @@