Package org.eclipse.debug.ui
Interface IDebugEditorPresentation
public interface IDebugEditorPresentation
A debug model presentation may implement this interface to override
standard editor positioning and annotations associated with
source code display for stack frames.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAnnotations
(IEditorPart editorPart, IStackFrame frame) Positions and adds annotations to the given editor for the specified stack frame and returns whether any annotations were added.void
removeAnnotations
(IEditorPart editorPart, IThread thread) Removes any debug related annotations from the given editor.
-
Method Details
-
addAnnotations
Positions and adds annotations to the given editor for the specified stack frame and returns whether any annotations were added. Whentrue
is returned, a call will be made to remove annotations when the source selection is cleared for the stack frame. Whenfalse
is returned, the debugger will position and add standard annotations to the editor, and a corresponding call to remove annotations will not be made. This method is called when the debugger is has opened an editor to display source for the given stack frame.- Parameters:
editorPart
- the editor the debugger has openedframe
- the stack frame for which the debugger is displaying source- Returns:
true
if annotations were added to the given editor partfalse
otherwise
-
removeAnnotations
Removes any debug related annotations from the given editor. This method is called when the debugger clears the source selection in an editor opened by the debugger. For example, when a debug session is resumed or terminated.- Parameters:
editorPart
- an editor that annotations were added to for a stack framethread
- the thread for which stack frame annotations were added to the editor
-