}
/*
* Pass in the attributes into a Tag Formatter
*/
TagFormatter tf = new TagFormatter(tagToEdit, attributesToRender, propOrder);
// Here is where we actually do the insertion
if (thisEdit instanceof ITextEditor) {
try {
ICFDocument cfd = (ICFDocument) doc;
cfd.replace(selection.getOffset(), selection.getLength(), tf.getTagStart());
} catch (BadLocationException e) {
e.printStackTrace();
}
thisEdit.setFocus();
}