当前位置: 首页>>代码示例>>Java>>正文


Java ExcludedEntriesConfigurable类代码示例

本文整理汇总了Java中com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable的典型用法代码示例。如果您正苦于以下问题:Java ExcludedEntriesConfigurable类的具体用法?Java ExcludedEntriesConfigurable怎么用?Java ExcludedEntriesConfigurable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ExcludedEntriesConfigurable类属于com.intellij.openapi.compiler.options包,在下文中一共展示了ExcludedEntriesConfigurable类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createExcludedConfigurable

import com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable; //导入依赖的package包/类
private static ExcludedEntriesConfigurable createExcludedConfigurable(final Project project) {
  final ExcludesConfiguration configuration = ValidationConfiguration.getExcludedEntriesConfiguration(project);
  final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex();
  final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, false, false, false, true) {
    public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {
      return super.isFileVisible(file, showHiddenFiles) && (project.isDefault() || !index.isExcluded(file));
    }
  };

  List<VirtualFile> allContentRoots = new ArrayList<VirtualFile>();
  for (final Module module: ModuleManager.getInstance(project).getModules()) {
    final VirtualFile[] moduleContentRoots = ModuleRootManager.getInstance(module).getContentRoots();
    Collections.addAll(allContentRoots, moduleContentRoots);
  }
  descriptor.setRoots(allContentRoots);
  return new ExcludedEntriesConfigurable(project, descriptor, configuration);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:ValidationConfigurable.java

示例2: createExcludedConfigurable

import com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable; //导入依赖的package包/类
private ExcludedEntriesConfigurable createExcludedConfigurable(final Project project) {
  final ExcludesConfiguration configuration = myConfig.getExcludeFromStubGeneration();
  final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex();
  final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, false, false, false, true) {
    @Override
    public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {
      return super.isFileVisible(file, showHiddenFiles) && !index.isExcluded(file);
    }
  };
  descriptor.setRoots(ContainerUtil.concat(
    ContainerUtil.map(ModuleManager.getInstance(project).getModules(), new Function<Module, List<VirtualFile>>() {
      @Override
      public List<VirtualFile> fun(final Module module) {
        return ModuleRootManager.getInstance(module).getSourceRoots(JavaModuleSourceRootTypes.SOURCES);
      }
    })));
  return new ExcludedEntriesConfigurable(project, descriptor, configuration);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:GroovyCompilerConfigurable.java

示例3: createExcludedConfigurable

import com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable; //导入依赖的package包/类
private ExcludedEntriesConfigurable createExcludedConfigurable(final Project project) {
  final ExcludedEntriesConfiguration configuration = myConfig.getExcludeFromStubGeneration();
  final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex();
  final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, false, false, false, true) {
    public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {
      return super.isFileVisible(file, showHiddenFiles) && !index.isIgnored(file);
    }
  };
  descriptor.setRoots(ContainerUtil.concat(
    ContainerUtil.map(ModuleManager.getInstance(project).getModules(), new Function<Module, List<VirtualFile>>() {
      @Override
      public List<VirtualFile> fun(final Module module) {
        return Arrays.asList(ModuleRootManager.getInstance(module).getSourceRoots());
      }
    })));
  return new ExcludedEntriesConfigurable(project, descriptor, configuration);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:GroovyCompilerConfigurable.java

示例4: getExcludes

import com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable; //导入依赖的package包/类
public ExcludedEntriesConfigurable getExcludes() {
  return myExcludes;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:GroovyCompilerConfigurable.java

示例5: CompilerExcludedConfigurable

import com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable; //导入依赖的package包/类
public CompilerExcludedConfigurable(final Project project) {
  CompilerManager compilerManager = CompilerManager.getInstance(project);

  myConfigurable = new ExcludedEntriesConfigurable(project, new FileChooserDescriptor(true, true, false, false, false, true),
                                                   compilerManager.getExcludedEntriesConfiguration());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:CompilerExcludedConfigurable.java


注:本文中的com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。