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 void createControl(Composite parent) {
        super.createControl(parent);
        WorkbenchHelp.setHelp(getControl(),
                IDataTransferHelpContextIds.ZIP_FILE_IMPORT_WIZARD_PAGE);
    }
    /**
     *	Create the options specification widgets. There is only one
     * in this case so create no group.
     *
     *	@param parent org.eclipse.swt.widgets.Composite
     */
    protected void createOptionsGroup(Composite parent) {
        
        overwriteExistingResourcesCheckbox = new Button(parent, SWT.CHECK);
        overwriteExistingResourcesCheckbox.setText(DataTransferMessages
                .getString("FileImport.overwriteExisting")); 
        overwriteExistingResourcesCheckbox.setFont(parent.getFont());
    }
    /**
     *	Answer a boolean indicating whether the specified source currently exists
     *	and is valid (ie.- proper format)
     */
    protected boolean ensureSourceIsValid() {
        ZipFile specifiedFile = getSpecifiedSourceFile();
        if (specifiedFile == null)
            return false;
        return closeZipFile(specifiedFile);
    }
    /**