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


Java ProductionResourceContentFolderTypeProvider.getInstance方法代码示例

本文整理汇总了Java中consulo.roots.impl.ProductionResourceContentFolderTypeProvider.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java ProductionResourceContentFolderTypeProvider.getInstance方法的具体用法?Java ProductionResourceContentFolderTypeProvider.getInstance怎么用?Java ProductionResourceContentFolderTypeProvider.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在consulo.roots.impl.ProductionResourceContentFolderTypeProvider的用法示例。


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

示例1: filterResourceFiles

import consulo.roots.impl.ProductionResourceContentFolderTypeProvider; //导入方法依赖的package包/类
@NotNull
private static List<VirtualFile> filterResourceFiles(CompileContext compileContext, VirtualFile[] virtualFiles)
{
	ProjectFileIndex fileIndex = ProjectFileIndex.getInstance(compileContext.getProject());

	List<VirtualFile> list = new ArrayList<>(virtualFiles.length);
	for(VirtualFile file : virtualFiles)
	{
		ContentFolderTypeProvider provider = fileIndex.getContentFolderTypeForFile(file);
		if(provider == ProductionResourceContentFolderTypeProvider.getInstance() || provider == TestResourceContentFolderTypeProvider.getInstance())
		{
			continue;
		}
		list.add(file);
	}
	return list;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:18,代码来源:JavaCompiler.java

示例2: toField

import consulo.roots.impl.ProductionResourceContentFolderTypeProvider; //导入方法依赖的package包/类
private CommitableFieldPanel toField(ContentFolderTypeProvider contentFolderTypeProvider) {
  if (contentFolderTypeProvider == ProductionContentFolderTypeProvider.getInstance()) {
    return myOutputPathPanel;
  }
  else if (contentFolderTypeProvider == ProductionResourceContentFolderTypeProvider.getInstance()) {
    return myResourcesOutputPathPanel;
  }
  else if (contentFolderTypeProvider == TestContentFolderTypeProvider.getInstance()) {
    return myTestsOutputPathPanel;
  }
  else if (contentFolderTypeProvider == TestResourceContentFolderTypeProvider.getInstance()) {
    return myTestResourcesOutputPathPanel;
  }
  throw new IllegalArgumentException(contentFolderTypeProvider.getId());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:16,代码来源:BuildElementsEditor.java

示例3: isInResource

import consulo.roots.impl.ProductionResourceContentFolderTypeProvider; //导入方法依赖的package包/类
@Override
public boolean isInResource(@Nonnull VirtualFile fileOrDir) {
  DirectoryInfo info = getInfoForFileOrDirectory(fileOrDir);
  return info.isInModuleSource() && myDirectoryIndex.getContentFolderType(info) == ProductionResourceContentFolderTypeProvider.getInstance();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:ProjectFileIndexImpl.java

示例4: ProductionResourceModuleOutputElementType

import consulo.roots.impl.ProductionResourceContentFolderTypeProvider; //导入方法依赖的package包/类
public ProductionResourceModuleOutputElementType() {
  super("module-production-resource-output", ProductionResourceContentFolderTypeProvider.getInstance());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:ProductionResourceModuleOutputElementType.java

示例5: isInsideResourceRoot

import consulo.roots.impl.ProductionResourceContentFolderTypeProvider; //导入方法依赖的package包/类
private static boolean isInsideResourceRoot(VirtualFile file, ProjectFileIndex fileIndex)
{
	ContentFolderTypeProvider provider = fileIndex.getContentFolderTypeForFile(file);
	return provider == ProductionResourceContentFolderTypeProvider.getInstance() || provider == TestResourceContentFolderTypeProvider.getInstance();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:6,代码来源:JavaProjectRootsUtil.java


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