if (hypertext != null) {
for (TextElement item : hypertext.getContent()) {
if (item instanceof Term) {
newText += ((Term) item).getVisibleContent();
} else if (item instanceof org.emftrace.metamodel.EMFfitModel.Link) {
EmbeddedLink newLink = new EmbeddedLink(this, SWT.NONE);
newLink.setText(((org.emftrace.metamodel.EMFfitModel.Link) item)
.getVisibleContent());
newLink.setTarget(((org.emftrace.metamodel.EMFfitModel.Link) item).getTarget());
newText += "\uFFFC";
int linkOffset = newText.length() - 1;
offsets.add(linkOffset);
offsetLinkMap.put(linkOffset, newLink);