// display it.
StringBuffer result = new StringBuffer();
try {
// PreviewHandler.generatePreview(this.getModel(),
// this.getEditorInput(), result);
DocumentEditPart part = (DocumentEditPart) this._designViewer
.getGraphicViewer().getContents();
PreviewHandlerNew.generatePreview(part, result);
} catch (Exception ex) {
result = new StringBuffer();
result