コード例 #1
0
 public JavaPsiFacadeKotlinHacks(@NotNull Project project) {
   this.javaFileManager = findJavaFileManager(project);
   this.extensionPsiElementFinders = Lists.newArrayList();
   for (PsiElementFinder finder : project.getExtensions(PsiElementFinder.EP_NAME)) {
     if (!(finder instanceof KotlinFinderMarker)) {
       this.extensionPsiElementFinders.add(finder);
     }
   }
 }
コード例 #2
0
 @Nullable
 public static Configurable createProjectConfigurableForProvider(
     @NotNull Project project, Class<? extends ConfigurableProvider> providerClass) {
   return createConfigurableForProvider(
       project.getExtensions(Configurable.PROJECT_CONFIGURABLE), providerClass);
 }
コード例 #3
0
 /** @deprecated create a new instance of configurable instead */
 @NotNull
 public static <T extends Configurable> T findProjectConfigurable(
     @NotNull Project project, @NotNull Class<T> configurableClass) {
   return findConfigurable(
       project.getExtensions(Configurable.PROJECT_CONFIGURABLE), configurableClass);
 }
コード例 #4
0
 public static GroovyShortNamesCache getGroovyShortNamesCache(Project project) {
   return ObjectUtils.assertNotNull(
       ContainerUtil.findInstance(
           project.getExtensions(PsiShortNamesCache.EP_NAME), GroovyShortNamesCache.class));
 }