From 6063d45e4ebe26fabb2ae6565ab240ae40ca31e1 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 17 Mar 2010 13:43:04 +0000 Subject: [PATCH] [300718] The delete button in the Breakpoint actions preference page was no longer being called because of the bug fix in bug 300718 --- .../debug/ui/breakpointactions/ActionsPreferencePage.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java index 2278ddf0417..694c0bf568b 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java @@ -14,6 +14,8 @@ import org.eclipse.cdt.debug.core.CDebugCorePlugin; import org.eclipse.cdt.debug.ui.CDebugUIPlugin; import org.eclipse.jface.preference.PreferencePage; import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; @@ -42,6 +44,12 @@ public class ActionsPreferencePage extends PreferencePage implements IWorkbenchP final GlobalActionsList actionsList = new GlobalActionsList(container, SWT.NONE, false); actionsList.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); + actionsList.getDeleteButton().addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + actionsList.HandleDeleteButton(); + } + }); + String helpContextID = CDebugUIPlugin.PLUGIN_ID + "." + contextHelpID; //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(super.getControl(), helpContextID);