ProjectionViewer viewer = (ProjectionViewer) getSourceViewer();
fProjectionSupport = new ProjectionSupport(viewer, getAnnotationAccess(), getSharedColors());
fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$
fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$
fProjectionSupport.install();
viewer.doOperation(ProjectionViewer.TOGGLE);
// MultiPassContentFormatter formatter=
// new MultiPassContentFormatter(
// getConfiguredDocumentPartitioning(viewer),
// IDocument.DEFAULT_CONTENT_TYPE);