Community
Participate
Working Groups
This is a follow up of https://www.eclipse.org/forums/index.php/t/1091909/ the approach described there but it has a downside: adaptables AnnotationModel does private ISourceNode findSourceCoverageForEditor() { if (editor.isDirty()) { return null; } final IEditorInput input = editor.getEditorInput(); if (input == null) { return null; } final Object element = input.getAdapter(IJavaElement.class); if (!hasSource((IJavaElement) element)) { return null; } return findSourceCoverageForElement(element); } so the problem is that you can have only one adapter factory from FileEditorInput to IJavaElement maybe it would be easier to customize with editor.getAdapter(IJavaElement.class); before asking for editor.getEditorInput(); i also wonder if there could be a more general solution to get custom languages into emma so that they also show up in the coverage view do you have any hints where to start looking thanks
Hi Christian, what about testing this idea with your specific scenario and report whether this actually works? Regards, -marc
for my personal usecase it works https://github.com/eclipse/eclemma/compare/master...cdietrich:cd_bug574446