本文整理汇总了Java中com.intellij.usages.UsageView.USAGE_SCOPE属性的典型用法代码示例。如果您正苦于以下问题:Java UsageView.USAGE_SCOPE属性的具体用法?Java UsageView.USAGE_SCOPE怎么用?Java UsageView.USAGE_SCOPE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.usages.UsageView
的用法示例。
在下文中一共展示了UsageView.USAGE_SCOPE属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calcData
@Override
public void calcData(final DataKey key, final DataSink sink) {
if (key == UsageView.USAGE_INFO_KEY) {
PsiElement element = getElement();
if (element != null && element.getTextRange() != null) {
sink.put(UsageView.USAGE_INFO_KEY, new UsageInfo(element));
}
}
else if (key == UsageView.USAGE_SCOPE) {
sink.put(UsageView.USAGE_SCOPE, myOptions.searchScope);
}
}
示例2: calcData
@Override
public void calcData(final Key<?> key, final DataSink sink) {
if (key == UsageView.USAGE_INFO_KEY) {
PsiElement element = getElement();
if (element != null && element.getTextRange() != null) {
sink.put(UsageView.USAGE_INFO_KEY, new UsageInfo(element));
}
}
else if (key == UsageView.USAGE_SCOPE) {
sink.put(UsageView.USAGE_SCOPE, myOptions.searchScope);
}
}
示例3: calcData
@Override
public void calcData(Key key, DataSink sink) {
if (UsageView.USAGE_SCOPE == key) {
SearchScope scope = getScopeFromModel(myProject, myFindModel);
sink.put(UsageView.USAGE_SCOPE, scope);
}
}