Bug 332627 - Breakpoint not visible after file refresh
Summary: Breakpoint not visible after file refresh
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 08:43 EST by alcolo47-sourceforge@yahoo.fr CLA
Modified: 2020-09-04 15:18 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.