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

Bug 376234

Summary: org.eclipse.cdt.debug.ui.breakpointContribution extension point does not support custom FieldEditor to edit Attributes
Product: [Tools] CDT Reporter: jerome guiban <jerome.guiban>
Component: cdt-debug-cdiAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: cdtdoug, marc.khouzam, pawel.1.piech
Version: Next   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description jerome guiban CLA 2012-04-06 03:49:17 EDT
Build Identifier: M20120208-0800

when using "org.eclipse.cdt.debug.ui.breakpointContribution" extension point to add a new Event Point, it is not possible to use a custom FieldEditor to edit Attribute value. Only already defined FieldEditor can be used (BooleanFieldEditor, StringFieldEditor, ...), else an exeption is reported at runtime.

The exception is due to ho the FieldEditor is loaded by org.eclipse.cdt.debug.ui.breakpoints.DefaultCBreakpointUIContribution.getFieldEditor() method:
Class cclass = Class.forName(className);



Reproducible: Always

Steps to Reproduce:
Here is an example that generates an exception:

<extension point="org.eclipse.cdt.debug.ui.breakpointContribution">
  <breakpointLabels markerType="org.eclipse.cdt.debug.core.cEventBreakpointMarker"> 
    <attribute name="org.eclipse.cdt.debug.core.eventbreakpoint_event_id"   label="%catchType.label" type="string">
      <value label="Context Creation (Simics)" value="context creation">
      <attribute 
        name="org.eclipse.tcf.debug.ContextQuery" label="contextQuery" 
        type="string"          fieldEditor="com.windriver.tcf.simicsbreakpoint.ui.ContextQueryFieldEditor""/>
....
Comment 1 Pawel Piech CLA 2012-04-26 13:38:16 EDT
The overarching issue is support for event breakpoints in properties dialog.

*** This bug has been marked as a duplicate of bug 376236 ***