use of org.eclipse.xtext.ui.editor.model.JarFileMarkerAnnotationModel in project xtext-eclipse by eclipse.
the class XbaseDocumentProvider method createAnnotationModel.
@Override
protected IAnnotationModel createAnnotationModel(Object element) throws CoreException {
if (element instanceof IEditorInput) {
IEditorInput editorInput = (IEditorInput) element;
SourceRelativeURI breakpointURI = breakpointUtil.getBreakpointURI(editorInput);
if (breakpointURI != null) {
// we only get a URI here if the EditorInput points into a JAR
IResource breakpointResource = breakpointUtil.getBreakpointResource(editorInput);
return new JarFileMarkerAnnotationModel(breakpointResource, breakpointURI);
}
}
return super.createAnnotationModel(element);
}
Aggregations