// set projection viewer on new document's adapter factory
if (viewer.getProjectionAnnotationModel() != null) {
final ProjectionModelNodeAdapterFactoryHTML factory2 = getAdapterFactoryHTML(true);
if (factory2 != null) {
factory2.addProjectionViewer(viewer);
factory2.suspendProjectionViewer(viewer);
}
addAllAdapters();
if (factory2 != null) {
factory2.activateProjectionViewer(viewer);
}