scanners.put(IJavaPartitions.JAVA_SINGLE_LINE_COMMENT,
t.getSinglelineCommentScanner());
scanners.put(IJavaPartitions.JAVA_STRING, t.getStringScanner());
scanners.put(IJavaPartitions.JAVA_CHARACTER, t.getStringScanner());
StyledTextArea styledText = new StyledTextArea();
pane.getChildren().add(styledText);
IDocument doc = new Document(getFileContent(file));
SimpleSourceViewer viewer = new SimpleSourceViewer(styledText,
t.createDocumentPartitioner(), scanners);