Bug 11673 ESC does not cancel Apply when changing compiler options
build 20020319 Workbench->Preferences->Java->Compiler 1) Start with the default settings 2) Change "Unused local variables" to "Warning" 3) Hit Apply button 4) Dialog shows up asking if user wants a full rebuild 5) Hit Cancel to exit yes/no dialog 6) Hit cancel to exit preferences 7) Go back to the same preferences page 8) "Unused local variables" was set to "Warning" The expected behaviour was to cancel the dialog (none of the options) and cancel the preferences without modifying anything. It seems that ESC is the same as hitting NO in that dialog.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompilerPreferencePage.java
private static final String PREF_SOURCE_COMPATIBILITY= "org.eclipse.jdt.core.compiler.source"; 
	private static final String PREF_COMPLIANCE= "org.eclipse.jdt.core.compiler.compliance"; 
	private static final String INTR_DEFAULT_COMPLIANCE= "internal.default.compliance"; 
	
	private static final String GENERATE= "generate"; 
	private static final String DO_NOT_GENERATE= "do not generate"; 
	
	private static final String PRESERVE= "preserve"; 
	private static final String OPTIMIZE_OUT= "optimize out"; 
	
	private static final String VERSION_1_1= "1.1"; 
	private static final String VERSION_1_2= "1.2"; 
	private static final String VERSION_1_3= "1.3"; 
	private static final String VERSION_1_4= "1.4"; 
	
	private static final String ERROR= "error"; 
	private static final String WARNING= "warning"; 
	private static final String IGNORE= "ignore"; 
	
	private static final String DEFAULT= "default"; 
	private static final String USER= "user";	 
	private static String[] getAllKeys() {
		return new String[] {
			PREF_LOCAL_VARIABLE_ATTR, PREF_LINE_NUMBER_ATTR, PREF_SOURCE_FILE_ATTR, PREF_CODEGEN_UNUSED_LOCAL,
			PREF_CODEGEN_TARGET_PLATFORM, PREF_PB_UNREACHABLE_CODE, PREF_PB_INVALID_IMPORT, PREF_PB_OVERRIDING_PACKAGE_DEFAULT_METHOD,
			PREF_PB_METHOD_WITH_CONSTRUCTOR_NAME, PREF_PB_DEPRECATION, PREF_PB_HIDDEN_CATCH_BLOCK, PREF_PB_UNUSED_LOCAL,
			PREF_PB_UNUSED_PARAMETER, PREF_PB_SYNTHETIC_ACCESS_EMULATION, PREF_PB_NON_EXTERNALIZED_STRINGS,
			PREF_PB_ASSERT_AS_IDENTIFIER, PREF_SOURCE_COMPATIBILITY, PREF_COMPLIANCE
		};	
	}