Java 类com.intellij.psi.search.scope.packageSet.PackageSetFactory 实例源码

项目:intellij-ce-playground    文件:FindManagerTest.java   
public void testNoFilesFromAdditionalIndexedRootsWithCustomExclusionScope() throws ParsingException {
  FindModel findModel = FindManagerTestUtils.configureFindModel("Object.prototype.__defineGetter__");
  PackageSet compile = PackageSetFactory.getInstance().compile("!src[subdir]:*..*");
  findModel.setCustomScope(GlobalSearchScopesCore.filterScope(myProject, new NamedScope.UnnamedScope(compile)));
  findModel.setCustomScope(true);
  assertSize(0, findUsages(findModel));
}