コード例 #1
0
 @Override
 public void renderElement(LookupElementPresentation presentation) {
   myTypeItems.get(0).renderElement(presentation);
   presentation.setItemText(getLookupString());
   presentation.setTailText(null);
   presentation.setTypeText(null);
 }
コード例 #2
0
  public void renderElement(LookupElementPresentation presentation) {

    presentation.setItemText(getLookupString());
    presentation.setTypeText(parameter.getType().toString());

    if (!parameter.getValue().isEmpty())
      presentation.appendTailText("(" + parameter.getValue() + ")", true);

    presentation.setIcon(SilexIcons.Parameter);
  }
コード例 #3
0
 public void setTypeText(@Nullable String text) {
   setTypeText(text, null);
 }
コード例 #4
0
 @Override
 public void renderElement(LookupElementPresentation presentation) {
   super.renderElement(presentation);
   presentation.setTypeText(myTypeText);
   presentation.setIcon(PlatformIcons.METHOD_ICON);
 }