本文整理汇总了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);
}
示例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;
}
示例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
);
}
示例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;
}
示例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);
}
示例6: getModels
import com.intellij.util.containers.ContainerUtil; //导入方法依赖的package包/类
@Override
protected Set<Class> getModels() {
return ContainerUtil.<Class>set(WebConfiguration.class);
}
示例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);
}