per-position language level checking when suggesting completion keywords (EA-29624)

This commit is contained in:
peter
2011-11-10 20:12:05 +01:00
parent 37e9d89ca0
commit 675559f5cc
3 changed files with 12 additions and 1 deletions
@@ -333,6 +333,7 @@ public interface PsiElementFactory extends PsiJavaParserFacade, JVMElementFactor
* @throws IncorrectOperationException if <code>text</code> is not a valid Java keyword.
*/
@NotNull PsiKeyword createKeyword(@NotNull @NonNls String keyword) throws IncorrectOperationException;
@NotNull PsiKeyword createKeyword(@NotNull @NonNls String keyword, PsiElement context) throws IncorrectOperationException;
/**
* Creates an import statement for importing the specified class.