// element tag name cannot be DBCS, do not translate "<element>"
// and "</element>"
final String startElement = "<" + ELEMENT_NAME + ">"; //$NON-NLS-1$ //$NON-NLS-2$
multiTextEdit.addChild(new InsertEdit(startTagOffset, startElement));
multiTextEdit.addChild(new InsertEdit(endTagOffset, "</"+ELEMENT_NAME +">")); //$NON-NLS-1$ //$NON-NLS-2$
multiTextEdit.apply(viewer.getDocument());
Position start = new Position(startTagOffset);
Position end = new Position(endTagOffset + startElement.length());
try {
viewer.getDocument().addPosition(start);