package bndtools.editor;

import org.bndtools.core.editors.BndResourceMarkerAnnotationModel;
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.ui.editors.text.TextFileDocumentProvider;

public class BndSourceDocumentProvider extends TextFileDocumentProvider {
    @Override
    protected IAnnotationModel createAnnotationModel(IFile file) {
        return new BndResourceMarkerAnnotationModel(file);
    }
}

@@ -464,10 +464,97 @@
 ;%0A    %7D%0A
+%0A    @Override%0A    public String getDefaultEncoding() %7B%0A        return %22UTF-8%22;%0A    %7D%0A%0A
 %7D%0A

Make sure we always save bnd files as UTF-8 and not accidentally inherit the local Eclipse platform encoding …