|
53 | 53 | import javax.swing.event.DocumentListener; |
54 | 54 | import javax.swing.text.Document; |
55 | 55 | import org.netbeans.api.progress.ProgressHandle; |
56 | | -import org.netbeans.api.progress.ProgressHandleFactory; |
57 | 56 | import org.netbeans.modules.php.api.phpmodule.PhpModule; |
58 | 57 | import org.netbeans.modules.php.api.util.StringUtils; |
59 | 58 | import org.netbeans.modules.php.spi.framework.actions.BaseAction; |
60 | 59 | import org.netbeans.modules.php.wordpress.modules.WordPressModule; |
61 | 60 | import org.netbeans.modules.php.wordpress.util.GithubZipEntryFilter; |
62 | 61 | import org.netbeans.modules.php.wordpress.util.WPFileUtils; |
63 | 62 | import org.netbeans.modules.php.wordpress.util.WPUtils; |
| 63 | +import org.netbeans.modules.php.wordpress.util.WordPressUnzipException; |
64 | 64 | import org.netbeans.modules.php.wordpress.util.ZipEntryFilter; |
65 | 65 | import org.openide.DialogDisplayer; |
66 | 66 | import org.openide.NotifyDescriptor; |
@@ -187,8 +187,8 @@ public boolean cancel() { |
187 | 187 | WPFileUtils.unzip(url, themeDirectory, entryFilter); |
188 | 188 | } catch (MalformedURLException ex) { |
189 | 189 | Exceptions.printStackTrace(ex); |
190 | | - } catch (IOException ex) { |
191 | | - Exceptions.printStackTrace(ex); |
| 190 | + } catch (IOException | WordPressUnzipException ex) { |
| 191 | + LOGGER.log(Level.WARNING, null, ex); |
192 | 192 | } finally { |
193 | 193 | handle.finish(); |
194 | 194 | } |
|
0 commit comments