本文整理汇总了Java中com.intellij.codeInsight.completion.NextPrevParameterAction类的典型用法代码示例。如果您正苦于以下问题:Java NextPrevParameterAction类的具体用法?Java NextPrevParameterAction怎么用?Java NextPrevParameterAction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NextPrevParameterAction类属于com.intellij.codeInsight.completion包,在下文中一共展示了NextPrevParameterAction类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isEnabled
import com.intellij.codeInsight.completion.NextPrevParameterAction; //导入依赖的package包/类
@Override
protected boolean isEnabled(Editor editor, DataContext dataContext) {
if (!originalIsEnabled(editor, wantSelection())) return false;
if (LookupManager.getActiveLookup(editor) != null) return false;
PsiFile psiFile = CommonDataKeys.PSI_FILE.getData(dataContext);
if (psiFile != null && NextPrevParameterAction.hasSutablePolicy(editor, psiFile)) return false;
return true;
}
示例2: isEnabled
import com.intellij.codeInsight.completion.NextPrevParameterAction; //导入依赖的package包/类
@Override
protected boolean isEnabled(Editor editor, DataContext dataContext) {
if (!super.isEnabled(editor, dataContext)) return false;
if (LookupManager.getActiveLookup(editor) != null) return false;
PsiFile psiFile = LangDataKeys.PSI_FILE.getData(dataContext);
if (psiFile != null && NextPrevParameterAction.hasSutablePolicy(editor, psiFile)) return false;
return true;
}
示例3: isEnabled
import com.intellij.codeInsight.completion.NextPrevParameterAction; //导入依赖的package包/类
@Override
protected boolean isEnabled(Editor editor, DataContext dataContext) {
if (!originalIsEnabled(editor, wantSelection())) return false;
if (LookupManager.getActiveLookup(editor) != null) return false;
PsiFile psiFile = dataContext.getData(CommonDataKeys.PSI_FILE);
if (psiFile != null && NextPrevParameterAction.hasSutablePolicy(editor, psiFile)) return false;
return true;
}