Examples of finishLookup()


Examples of com.intellij.codeInsight.lookup.impl.LookupImpl.finishLookup()

    final Project project = editor.getProject();
    assertNotNull(project);
    new ListTemplatesAction().actionPerformedImpl(project, editor);
    final LookupImpl lookup = (LookupImpl)LookupManager.getActiveLookup(editor);
    assertNotNull(lookup);
    lookup.finishLookup(Lookup.NORMAL_SELECT_CHAR);
    TemplateState template = TemplateManagerImpl.getTemplateState(editor);
    if (template != null) {
      Disposer.dispose(template);
    }
  }
View Full Code Here

Examples of com.intellij.codeInsight.lookup.impl.LookupImpl.finishLookup()

  private void expandLiveTemplate() {
    new ListTemplatesAction().actionPerformedImpl(myFixture.getProject(), myFixture.getEditor());
    LookupImpl lookup = (LookupImpl)LookupManager.getActiveLookup(myFixture.getEditor());
    assertNotNull(lookup);
    lookup.finishLookup(Lookup.NORMAL_SELECT_CHAR);
  }
}
View Full Code Here

Examples of com.intellij.codeInsight.lookup.impl.LookupImpl.finishLookup()

    completeLookupItem(item, '\t');
  }

  protected void completeLookupItem(LookupElement item, char completionChar) {
    LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(getEditor());
    if (item == null) lookup.finishLookup(completionChar);
    else lookup.finishLookup(completionChar, item);
  }
}
View Full Code Here

Examples of com.intellij.codeInsight.lookup.impl.LookupImpl.finishLookup()

  }

  protected void completeLookupItem(LookupElement item, char completionChar) {
    LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(getEditor());
    if (item == null) lookup.finishLookup(completionChar);
    else lookup.finishLookup(completionChar, item);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.