Bug 36867 [Import/Export] Zip export dialog not append .zip if there is already an extension
Sometimes, when the Jar export dialog doesn't have the options I want, I use the zip export dialog to build a jar. Unfortunately, if I specify a file name of foo.jar, the zip export dialog insists on adding ".zip" to the end of the file name. Would it be possible to make it so ".zip" is not automatically added if there is already an extension on the file name (or specifically if ".jar" is there)? Or could there be a checkbox added on the export dialog to turn off the automatic appending of .zip?
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/WizardZipFileResourceExportPage1.java
if (!destinationText
				.toLowerCase()
				.endsWith(requiredSuffix.toLowerCase()))
				destinationText += requiredSuffix;
		}
		return destinationText;
	}
	/**
	 *	Answer the suffix that files exported from this wizard must have.
	 *	If this suffix is a file extension (which is typically the case)
	 *	then it must include the leading period character.
	 *
	 */
	protected String getOutputSuffix() {
		return ".zip"; 
	}
	/**
	 *	Open an appropriate destination browser so that the user can specify a source
	 *	to import from
	 */
	protected void handleDestinationBrowseButtonPressed() {
		FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE);
		dialog.setFilterExtensions(new String[] { "*.zip" }); 
		dialog.setText(DataTransferMessages.getString("ZipExport.selectDestinationTitle")); 
		String currentSourceString = getDestinationValue();
		int lastSeparatorIndex =
			currentSourceString.lastIndexOf(File.separator);
		if (lastSeparatorIndex != -1)
			dialog.setFilterPath(
				currentSourceString.substring(0, lastSeparatorIndex));