use of org.omegat.util.TagUtil.Tag in project omegat by omegat-org.
the class TagIssue method insertText.
private void insertText(StyledDocument doc, String text, Map<Tag, TagError> errors) throws BadLocationException {
doc.insertString(0, text, null);
for (Map.Entry<Tag, TagError> e : errors.entrySet()) {
Tag tag = e.getKey();
doc.setCharacterAttributes(tag.pos, tag.tag.length(), styleForError(e.getValue()), false);
}
}
Aggregations