@@ -101,6 +101,7 @@ protected void clearErrorMessage() {
101101 private Button fShowStepResult ;
102102 private Button fShowStepResultRemote ;
103103 private Button fAdvancedSourcelookup ;
104+ private Button fExceptionBreakpoint ;
104105
105106 // Timeout preference widgets
106107 private JavaDebugIntegerFieldEditor fTimeoutText ;
@@ -187,6 +188,7 @@ protected Control createContents(Composite parent) {
187188 fPromptDeleteConditionalBreakpoint = SWTFactory .createCheckButton (composite , DebugUIMessages .JavaDebugPreferencePage_promptWhenDeletingCondidtionalBreakpoint , null , false , 1 );
188189 fFilterUnrelatedBreakpoints = SWTFactory .createCheckButton (composite , DebugUIMessages .JavaDebugPreferencePage_filterUnrelatedBreakpoints , null , false , 1 );
189190
191+ fExceptionBreakpoint = SWTFactory .createCheckButton (composite , DebugUIMessages .fExceptionBreakpointMsg , null , true , 1 );
190192 SWTFactory .createVerticalSpacer (composite , 1 );
191193 fOnlyIncludeExportedEntries = SWTFactory .createCheckButton (composite , DebugUIMessages .JavaDebugPreferencePage_only_include_exported_entries , null , false , 1 );
192194
@@ -251,6 +253,7 @@ public boolean performOk() {
251253 prefs .putInt (JDIDebugModel .PREF_REQUEST_TIMEOUT , fTimeoutText .getIntValue ());
252254 prefs .putBoolean (JDIDebugModel .PREF_FILTER_BREAKPOINTS_FROM_UNRELATED_SOURCES , fFilterUnrelatedBreakpoints .getSelection ());
253255 prefs .putBoolean (JDIDebugPlugin .PREF_ENABLE_ADVANCED_SOURCELOOKUP , fAdvancedSourcelookup .getSelection ());
256+ prefs .putBoolean (JDIDebugModel .PREF_CREATE_EXCEPTION_BREAKPOINTS_ON_CLICK , fExceptionBreakpoint .getSelection ());
254257 try {
255258 prefs .flush ();
256259 }
@@ -300,6 +303,7 @@ protected void performDefaults() {
300303 fShowStepTimeoutText .setStringValue (Integer .toString (prefs .getInt (JDIDebugModel .PREF_SHOW_STEP_RESULT , JDIDebugModel .DEF_SHOW_STEP_TIMEOUT )));
301304 fTimeoutText .setStringValue (Integer .toString (prefs .getInt (JDIDebugModel .PREF_REQUEST_TIMEOUT , JDIDebugModel .DEF_REQUEST_TIMEOUT )));
302305 fFilterUnrelatedBreakpoints .setSelection (prefs .getBoolean (JDIDebugModel .PREF_FILTER_BREAKPOINTS_FROM_UNRELATED_SOURCES , true ));
306+ fExceptionBreakpoint .setSelection (prefs .getBoolean (JDIDebugModel .PREF_CREATE_EXCEPTION_BREAKPOINTS_ON_CLICK , true ));
303307 fAdvancedSourcelookup .setSelection (prefs .getBoolean (JDIDebugPlugin .PREF_ENABLE_ADVANCED_SOURCELOOKUP , true ));
304308 }
305309 prefs = DefaultScope .INSTANCE .getNode (LaunchingPlugin .ID_PLUGIN );
@@ -343,6 +347,7 @@ private void setValues() {
343347 fShowStepTimeoutText .setStringValue (Integer .toString (prefs .getInt (bundleId , JDIDebugModel .PREF_SHOW_STEP_TIMEOUT , JDIDebugModel .DEF_SHOW_STEP_TIMEOUT , null )));
344348 fTimeoutText .setStringValue (Integer .toString (prefs .getInt (bundleId , JDIDebugModel .PREF_REQUEST_TIMEOUT , JDIDebugModel .DEF_REQUEST_TIMEOUT , null )));
345349 fFilterUnrelatedBreakpoints .setSelection (prefs .getBoolean (bundleId , JDIDebugModel .PREF_FILTER_BREAKPOINTS_FROM_UNRELATED_SOURCES , true , null ));
350+ fExceptionBreakpoint .setSelection (prefs .getBoolean (bundleId , JDIDebugModel .PREF_CREATE_EXCEPTION_BREAKPOINTS_ON_CLICK , true , null ));
346351 fAdvancedSourcelookup .setSelection (prefs .getBoolean (bundleId , JDIDebugPlugin .PREF_ENABLE_ADVANCED_SOURCELOOKUP , true , null ));
347352
348353 bundleId = LaunchingPlugin .ID_PLUGIN ;
0 commit comments