CompletionConfidence.shouldSkipAutopopup javadoc

This commit is contained in:
peter
2013-08-21 15:21:58 +02:00
parent 99f3a666b1
commit c65ae380a1
@@ -31,6 +31,10 @@ public abstract class CompletionConfidence {
@NotNull
public abstract ThreeState shouldFocusLookup(@NotNull CompletionParameters parameters);
/**
* This method is invoked first when a completion autopopup is scheduled. Extensions are able to cancel this completion process based on location.
* For example, in string literals or comments completion autopopup may do more harm than good.
*/
@NotNull
public ThreeState shouldSkipAutopopup(@NotNull PsiElement contextElement, @NotNull PsiFile psiFile, int offset) {
return ThreeState.UNSURE;