ITextContentService textContentService = textDocument.getTextService()
.getTextContentService();
ITextDocumentImage textDocumentImage = null;
try {
textDocumentImage = textContentService
.constructNewImage(graphicInfo);
textContentService.insertTextContent(textRange, textDocumentImage);
} catch (TextException e) {
textDocumentImage = null;
// TODO Auto-generated catch block