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

Bug 332627

Summary: Breakpoint not visible after file refresh
Product: [Tools] CDT Reporter: alcolo47-sourceforge <alcolo47-sourceforge>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: ASSIGNED --- QA Contact: Jonah Graham <jonah>
Severity: minor    
Priority: P3 CC: aleherb+eclipse, cdtdoug, pawel.1.piech
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description alcolo47-sourceforge@yahoo.fr CLA 2010-12-15 08:43:58 EST
Build Identifier: M20100917-0705

The blue dot icon before line numbers (when displayed of course) disapear after "file refresh" functionnality (and the file was effectivelly modified and reloaed)

OS: Linux & Windows

Reproducible: Always

Steps to Reproduce:
1.Add break point
2.Modify or touch externally the file
3.Refresh this file into eclipse
Comment 1 Anton Leherbauer CLA 2010-12-16 09:12:38 EST
Interesting problem.  The reason is that cdt.ui does not rely on an IAnnotationModelFactory to create the annotation model (like e.g. JDT).  Thus the annotations don't get reinitialized after a revert in ResourceTextFileBuffer.handleFileContentChanged().
On the other hand we cannot simply follow JDT here because cdt.debug.ui uses an IAnnotationModelFactory to create the DebugMarkerAnnotationModel (for external files) which would get in conflict with the factory from cdt.ui.