Exemplo n.º 1
0
  @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________________();
  }
Exemplo n.º 2
0
 @Override
 public void runAfters() {
   SWTTestUtils.clearEventQueue();
 }