@Override public void testComputeProposalsWithRepLen( int offset, int prefixLen, int repLen, String... expectedProposals) { ContentAssistant ca = getContentAssistant(editor); DeeCodeCompletionProcessor caProcessor = (DeeCodeCompletionProcessor) ca.getContentAssistProcessor(DeePartitions.DEE_CODE); ICompletionProposal[] proposals = caProcessor.computeCompletionProposals(editor.getViewer(), offset); checkProposals(offset, prefixLen, repLen, proposals, expectedProposals); invokeContentAssist(editor, offset); SWTTestUtils.________________clearEventQueue________________(); }
@Override public void runAfters() { SWTTestUtils.clearEventQueue(); }