本文整理汇总了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);
}
示例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);
}
示例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);
}
示例4: getExcludes
import com.intellij.openapi.compiler.options.ExcludedEntriesConfigurable; //导入依赖的package包/类
public ExcludedEntriesConfigurable getExcludes() {
return myExcludes;
}
示例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());
}