本文整理汇总了Java中com.intellij.psi.scope.PsiScopeProcessor.Event方法的典型用法代码示例。如果您正苦于以下问题:Java PsiScopeProcessor.Event方法的具体用法?Java PsiScopeProcessor.Event怎么用?Java PsiScopeProcessor.Event使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.psi.scope.PsiScopeProcessor
的用法示例。
在下文中一共展示了PsiScopeProcessor.Event方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleEvent
import com.intellij.psi.scope.PsiScopeProcessor; //导入方法依赖的package包/类
@Override
public void handleEvent(@NotNull PsiScopeProcessor.Event event, Object associated) {
if (myProcessor != null) {
myProcessor.handleEvent(event, associated);
}
if (event == PsiScopeProcessor.Event.SET_DECLARATION_HOLDER && associated instanceof PsiElement) {
myCurrentDeclarationHolder = (PsiElement)associated;
}
}
示例2: handleEvent
import com.intellij.psi.scope.PsiScopeProcessor; //导入方法依赖的package包/类
@Override
public void handleEvent(@NotNull PsiScopeProcessor.Event event, Object associated) {
if (event == JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT) {
myCurrentFileContext = (PsiElement)associated;
myCurrentContextAnchor = null;
}
}
示例3: handleEvent
import com.intellij.psi.scope.PsiScopeProcessor; //导入方法依赖的package包/类
@Override
public final void handleEvent(@NotNull PsiScopeProcessor.Event event, Object associated) {
super.handleEvent(event, associated);
if(event == JavaScopeProcessorEvent.START_STATIC){
myStaticScopeFlag = true;
}
else if (JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT.equals(event)) {
myCurrentFileContext = (PsiElement)associated;
}
}
示例4: handleEvent
import com.intellij.psi.scope.PsiScopeProcessor; //导入方法依赖的package包/类
@Override
public void handleEvent(@NotNull PsiScopeProcessor.Event event, Object associated) {
if (event == JavaScopeProcessorEvent.CHANGE_LEVEL && myName != null) {
getResult();
}
}
示例5: handleEvent
import com.intellij.psi.scope.PsiScopeProcessor; //导入方法依赖的package包/类
public void handleEvent(final PsiScopeProcessor.Event event, final Object associated) {
myProcessor.handleEvent(event, associated);
}