Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Debug + GMF] Displaying debugger annotations on a diagram
https://www.eclipse.org/forums/index.php/mv/msg/202959/648577/#msg_648577
I'm implementing a debugger for a graphical DSL implemented in GMF (hence the crosspost to GMF/Debug groups).
I'm wondering what would be the proper/best way to display current instruction pointer annotation during debugging/stepping in a GMF-based editor?
I;ve implemented debug model presentation extension with both IDebugModelPresentation and IDebugEditorPresentation, and my GMF editor is opened during source lookup, and IDebugEditorPresentation.addAnnotations() gets called when displaying stack frame.
In addAnnotations(), I can tell the editor to select and reveal elements on a diagram using their ID, I guess I could also add decorations to them, but in order to do so, I need to modify the editor. I'd rather have something loosely coupled because I don't own all editors in the project.
Any ideas? Is there a way to have the entire annotation system in the debug plugins, the same way it's done in the org.eclipse.debug.ui for text editors?