final AnnotationModel model = new AnnotationModel();
VerticalRuler verticalRuler = new VerticalRuler(VERTICAL_RULER_WIDTH, new AnnotationAccess());
int styles = SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION;
SourceViewer sourceViewer = new SourceViewer(folder, verticalRuler, styles);
sourceViewer.configure(new XMLConfiguration(new ColorManager()));
sourceViewer.setEditable(false);
sourceViewer.getTextWidget().setFont(JFaceResources.getTextFont());
IDocumentPartitioner partitioner = new FastPartitioner(new XMLPartitionScanner(), new String[] { XMLPartitionScanner.XML_TAG, XMLPartitionScanner.XML_COMMENT });
partitioner.connect(document);