From 2c5def3c0195bf5b49008ebe225e5f9d6607cbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Paku=C5=82a?= Date: Tue, 19 Sep 2023 21:35:52 +0200 Subject: [PATCH] Fix compatibility with 2023-09 --- .../ui/phar/wizard/PharLeveledStructureProvider.java | 9 +++++++-- .../ui/phar/wizard/TarLeveledStructureProvider.java | 10 ++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/PharLeveledStructureProvider.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/PharLeveledStructureProvider.java index 4fc22061e2..da790435c1 100644 --- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/PharLeveledStructureProvider.java +++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/PharLeveledStructureProvider.java @@ -37,8 +37,8 @@ public class PharLeveledStructureProvider implements ILeveledImportStructureProv private int stripLevel; /** - * Creates a TarFileStructureProvider, which will operate on the - * passed tar file. + * Creates a TarFileStructureProvider, which will operate on + * the passed tar file. * * @param sourceFile * the source TarFile @@ -263,4 +263,9 @@ public void setStrip(int level) { public int getStrip() { return stripLevel; } + + @Override + public void close() throws Exception { + closeArchive(); + } } diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/TarLeveledStructureProvider.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/TarLeveledStructureProvider.java index 12fd7ade74..1d18d4ec75 100644 --- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/TarLeveledStructureProvider.java +++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/phar/wizard/TarLeveledStructureProvider.java @@ -39,8 +39,8 @@ public class TarLeveledStructureProvider implements ILeveledImportStructureProvi private int stripLevel; /** - * Creates a TarFileStructureProvider, which will operate on the - * passed tar file. + * Creates a TarFileStructureProvider, which will operate on + * the passed tar file. * * @param sourceFile * the source TarFile @@ -267,4 +267,10 @@ public void setStrip(int level) { public int getStrip() { return stripLevel; } + + @Override + public void close() throws Exception { + closeArchive(); + + } }