1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

[300718] The delete button in the Breakpoint actions preference page was no longer being called because of the bug fix in bug 300718

This commit is contained in:
Marc Khouzam 2010-03-17 13:43:04 +00:00
parent e26654f193
commit 6063d45e4e

View file

@ -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);