155156157158159160161162163164
textViewer.getDocument().set(text); } @Before public void setUp() throws Exception { detector = new CommitHyperlinkDetector(); Shell shell = new Shell(); textViewer = new TextViewer(shell, SWT.NONE); textViewer.setDocument(new Document()); }