Bug 17958 [Wizards] ZipFileImportWizard should allow configuration of supported file extensions
When selecting the source ZIP file, the user hits the "Browse..." button which opens the File Open Dialog. The file extensions are set to *.jar, *.zip There are other files such as *.war files which are in ZIP format and it would be nice to ehance the ZipFileImportWizard so that these extensions are read from a configuration/properties file. Currently, they are hardcoded in org/eclipse/ui/wizards/datatransfer/WizardZipFileResourceImportPage1.java
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardZipFileResourceImportPage1.java
*/
    public boolean cancel() {
        clearProviderCache();
        return true;
    }
    /**
     * Clears the cached structure provider after first finalizing
     * it properly.
     */
    protected void clearProviderCache() {
        if (providerCache != null) {
            closeZipFile(providerCache.getZipFile());
            providerCache = null;
        }
    }
    /**
     * Attempts to close the passed zip file, and answers a boolean indicating success.
     */
    protected boolean closeZipFile(ZipFile file) {
        try {
            file.close();
        } catch (IOException e) {
            displayErrorDialog(DataTransferMessages.format(
                    "ZipImport.couldNotClose", new Object[] { file.getName() })); 
            return false;
        }
        return true;
    }
    /** (non-Javadoc)
     * Method declared on IDialogPage.