1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

[284286] The delete button of the TracepointActions preference page was not being called.

This commit is contained in:
Marc Khouzam 2010-03-17 13:36:54 +00:00
parent ae33f98bb6
commit e26654f193

View file

@ -14,6 +14,8 @@ import org.eclipse.cdt.dsf.gdb.internal.tracepointactions.TracepointActionManage
import org.eclipse.cdt.dsf.gdb.internal.ui.GdbUIPlugin; import org.eclipse.cdt.dsf.gdb.internal.ui.GdbUIPlugin;
import org.eclipse.jface.preference.PreferencePage; import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT; 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.GridData;
import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Composite;
@ -46,12 +48,19 @@ public class TracepointActionsPreferencePage extends PreferencePage implements I
final TracepointGlobalActionsList actionsList = new TracepointGlobalActionsList(container, SWT.NONE, false, false); final TracepointGlobalActionsList actionsList = new TracepointGlobalActionsList(container, SWT.NONE, false, false);
actionsList.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); actionsList.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
actionsList.getDeleteButton().addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
actionsList.HandleDeleteButton();
}
});
String helpContextID = GdbUIPlugin.PLUGIN_ID + "." + contextHelpID; //$NON-NLS-1$ String helpContextID = GdbUIPlugin.PLUGIN_ID + "." + contextHelpID; //$NON-NLS-1$
PlatformUI.getWorkbench().getHelpSystem().setHelp(super.getControl(), helpContextID); PlatformUI.getWorkbench().getHelpSystem().setHelp(super.getControl(), helpContextID);
return container; return container;
} }
public void init(IWorkbench workbench) { public void init(IWorkbench workbench) {
} }