Bug 61216 [Dialogs] Closing the workspace dialog and escape
I20040506-0200 When you do File > Exit when the dialog is open, and you press escape, the behaviour of OK is executed (ie eclipse is being closed) whereas one would expect the behavior of CANCEL to happen.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
/**
	 * Returns the ordered set of versioned feature ids new for this session.
	 * 
	 * @return ordered set of versioned feature ids (element type: <code>String</code>)
	 */
	private Set getNewlyAddedFeatures() {
		Assert.isNotNull(newlyAddedFeatures);
		return newlyAddedFeatures;
	}
	
	/**
	 * Initializes the old, current, and newly added features.
	 */
	private void initializeFeatureSets() {
			
		IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings();
		String[] previousFeaturesArray = settings.getArray(INSTALLED_FEATURES);
		Set previousFeatures = null;
		if (previousFeaturesArray != null) {
			previousFeatures = new HashSet(Arrays.asList(previousFeaturesArray));
		} else {
			previousFeatures = new HashSet(0);
		}
		
		Set currentFeatures = computeFeatureSet();
		String[] currentFeaturesArray = new String[currentFeatures.size()];
		currentFeatures.toArray(currentFeaturesArray);
		settings.put(INSTALLED_FEATURES, currentFeaturesArray);