Created
November 21, 2013 04:32
-
-
Save vexus2/7576143 to your computer and use it in GitHub Desktop.
completion contributor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void fillCompletionVariants(CompletionParameters parameters, CompletionResultSet result) { | |
String arr$[] = new String[] {"foo", "bar"}; | |
int len$ = arr$.length; | |
for (int i$ = 0; i$ < len$; i$++) { | |
String s = arr$[i$]; | |
result.addElement(createDocTagLookup(false, s)); | |
} | |
super.fillCompletionVariants(parameters, result); | |
} | |
private LookupElementBuilder createDocTagLookup(boolean at, String s) | |
{ | |
return LookupElementBuilder.create(at ? s.substring(1) : s).withBoldness(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment