// initialize the viewer with input
// IStructuredModel sModel =
// StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(ContentTypeIdForHTML.ContentTypeID_HTML);
// IDOMDocument designDoc = ((IDOMModel)sModel).getDocument();
// HTMLEditPartsFactory factory = new HTMLEditPartsFactory(designDoc);
HTMLEditPartsFactory factory = new HTMLEditPartsFactory(null);
_viewer.setEditPartFactory(factory);
// for sync with source view.