Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312706

Summary: [breakpoints][tracepoints] The buttons to edit, delete and attach Bp and Tp actions are enabled when created
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debugAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: pawel.1.piech
Version: 7.0Flags: marc.khouzam: review? (ken.ryall)
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot of problem
none
Fix marc.khouzam: iplog-

Description Marc Khouzam CLA 2010-05-12 16:18:47 EDT
Created attachment 168249 [details]
Screenshot of problem

Looking at the snapshot we can see that the Attach, Edit and Delete buttons are enabled even though nothing is selected.  This is not nice and can lead to 

java.lang.ArrayIndexOutOfBoundsException: 0
	at org.eclipse.cdt.debug.ui.breakpointactions.GlobalActionsList.HandleEditButton(GlobalActionsList.java:163)
	at org.eclipse.cdt.debug.ui.breakpointactions.GlobalActionsList$3.widgetSelected(GlobalActionsList.java:112)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1234)
Comment 1 Marc Khouzam CLA 2010-05-12 16:21:43 EDT
Created attachment 168250 [details]
Fix

The fix is pretty simple.

Committed to HEAD.
Comment 2 Marc Khouzam CLA 2010-05-12 16:22:15 EDT
Ken, can you review?