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


Java ContainerUtil.set方法代码示例

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


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

示例1: createArtifactDeploymentSources

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@NotNull
@Override
public List<DeploymentSource> createArtifactDeploymentSources(Project project, ArtifactType... artifactTypes) {
  if (project.isDefault()) return Collections.emptyList();
  Artifact[] artifacts = ArtifactManager.getInstance(project).getArtifacts();
  List<Artifact> supportedArtifacts = new ArrayList<Artifact>();
  Set<ArtifactType> typeSet = ContainerUtil.set(artifactTypes);
  for (Artifact artifact : artifacts) {
    if (typeSet.contains(artifact.getArtifactType())) {
      supportedArtifacts.add(artifact);
    }
  }
  return createArtifactDeploymentSources(project, supportedArtifacts);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:JavaDeploymentSourceUtilImpl.java

示例2: getExtraProjectModelClasses

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@NotNull
@Override
public Set<Class> getExtraProjectModelClasses() {
  Set<Class> result = ContainerUtil.<Class>set(GradleBuild.class, ExternalProject.class, ModuleExtendedModel.class);
  if (!ExternalSystemApiUtil.isInProcessMode(GradleConstants.SYSTEM_ID) || !resolverCtx.isPreviewMode()) {
    result.add(BuildScriptClasspathModel.class);
  }
  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:BaseGradleProjectResolverExtension.java

示例3: getToolingExtensionsClasses

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@NotNull
@Override
public Set<Class> getToolingExtensionsClasses() {
  return ContainerUtil.<Class>set(
    // externalSystem api jar
    ExternalSystemSourceType.class,
    // gradle-tooling-extension-api jar
    ProjectImportAction.class,
    // gradle-tooling-extension-impl jar
    ModelBuildScriptClasspathBuilderImpl.class,
    GsonBuilder.class,
    ShortTypeHandling.class
  );
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:BaseGradleProjectResolverExtension.java

示例4: getToolingExtensionClasses

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@NotNull
private Set<Class> getToolingExtensionClasses() {
  final Set<Class> classes = ContainerUtil.<Class>set(
    ExternalProject.class,
    // gradle-tooling-extension-api jar
    ProjectImportAction.class,
    // gradle-tooling-extension-impl jar
    ModelBuildScriptClasspathBuilderImpl.class,
    ShortTypeHandling.class
  );

  ContainerUtil.addAllNotNull(classes, doGetToolingExtensionClasses());
  return classes;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:AbstractModelBuilderTest.java

示例5: supportedActionTypes

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@NotNull
@Override
public Set<GraphAction.Type> supportedActionTypes() {
  return ContainerUtil.set(GraphAction.Type.MOUSE_CLICK, GraphAction.Type.MOUSE_OVER);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:CollapsedActionManager.java

示例6: getModels

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@Override
protected Set<Class> getModels() {
  return ContainerUtil.<Class>set(WebConfiguration.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:WebConfigurationBuilderImplTest.java

示例7: getModels

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@Override
protected Set<Class> getModels() {
  return ContainerUtil.<Class>set(BuildScriptClasspathModel.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ModelBuildScriptClasspathBuilderImplTest.java

示例8: getModels

import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@Override
protected Set<Class> getModels() {
  return ContainerUtil.<Class>set(ModuleExtendedModel.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ModuleExtendedModelBuilderImplTest.java


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