private ICompletionProposal[] prepare( String code, String path, String wikiContents, int cursorPosition) { create(code, path); editor = createWikiDocumentAndOpen(wikiContents).getEditor(); return new WikiCompletionProcessor(editor) .computeCompletionProposals(editor.getTextViewerForTest(), cursorPosition); }
@Override protected void performAction(WikiEditor editor) { editor.openPreview(); }