本文整理汇总了Java中com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters类的典型用法代码示例。如果您正苦于以下问题:Java ComplexElementSubstitutionParameters类的具体用法?Java ComplexElementSubstitutionParameters怎么用?Java ComplexElementSubstitutionParameters使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ComplexElementSubstitutionParameters类属于com.intellij.openapi.roots.ui.configuration.artifacts包,在下文中一共展示了ComplexElementSubstitutionParameters类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CompositePackagingElementNode
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
public CompositePackagingElementNode(CompositePackagingElement<?> packagingElement, ArtifactEditorContext context,
CompositePackagingElementNode parentNode, CompositePackagingElement<?> parentElement,
ComplexElementSubstitutionParameters substitutionParameters,
Collection<PackagingNodeSource> nodeSources, ArtifactType artifactType) {
super(packagingElement, context, parentNode, parentElement, nodeSources);
mySubstitutionParameters = substitutionParameters;
myArtifactType = artifactType;
}
示例2: addNodes
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
public static void addNodes(@NotNull List<? extends PackagingElement<?>> elements, @NotNull CompositePackagingElementNode parentNode,
@NotNull CompositePackagingElement parentElement, @NotNull ArtifactEditorContext context,
@NotNull ComplexElementSubstitutionParameters substitutionParameters, @NotNull Collection<PackagingNodeSource> nodeSources,
@NotNull List<PackagingElementNode<?>> nodes,
ArtifactType artifactType,
Set<PackagingElement<?>> processed) {
for (PackagingElement<?> element : elements) {
final PackagingElementNode<?> prev = findEqual(nodes, element);
if (prev != null) {
prev.addElement(element, parentElement, nodeSources);
continue;
}
if (element instanceof ArtifactRootElement) {
throw new AssertionError("artifact root not expected here");
}
else if (element instanceof CompositePackagingElement) {
nodes.add(new CompositePackagingElementNode((CompositePackagingElement<?>)element, context, parentNode, parentElement, substitutionParameters, nodeSources,
artifactType));
}
else if (element instanceof ComplexPackagingElement) {
final ComplexPackagingElement<?> complexElement = (ComplexPackagingElement<?>)element;
if (processed.add(element) && substitutionParameters.shouldSubstitute(complexElement)) {
final List<? extends PackagingElement<?>> substitution = complexElement.getSubstitution(context, artifactType);
if (substitution != null) {
final PackagingNodeSource source = new PackagingNodeSource(complexElement, parentNode, parentElement, nodeSources);
addNodes(substitution, parentNode, parentElement, context, substitutionParameters, Collections.singletonList(source), nodes,
artifactType, processed);
continue;
}
}
nodes.add(new ComplexPackagingElementNode(complexElement, context, parentNode, parentElement, substitutionParameters, nodeSources));
}
else {
nodes.add(new PackagingElementNode<PackagingElement<?>>(element, context, parentNode, parentElement, nodeSources));
}
}
}
示例3: addNodes
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
public static void addNodes(@Nonnull List<? extends PackagingElement<?>> elements, @Nonnull CompositePackagingElementNode parentNode,
@Nonnull CompositePackagingElement parentElement, @Nonnull ArtifactEditorContext context,
@Nonnull ComplexElementSubstitutionParameters substitutionParameters, @Nonnull Collection<PackagingNodeSource> nodeSources,
@Nonnull List<PackagingElementNode<?>> nodes,
ArtifactType artifactType,
Set<PackagingElement<?>> processed) {
for (PackagingElement<?> element : elements) {
final PackagingElementNode<?> prev = findEqual(nodes, element);
if (prev != null) {
prev.addElement(element, parentElement, nodeSources);
continue;
}
if (element instanceof ArtifactRootElement) {
throw new AssertionError("artifact root not expected here");
}
else if (element instanceof CompositePackagingElement) {
nodes.add(new CompositePackagingElementNode((CompositePackagingElement<?>)element, context, parentNode, parentElement, substitutionParameters, nodeSources,
artifactType));
}
else if (element instanceof ComplexPackagingElement) {
final ComplexPackagingElement<?> complexElement = (ComplexPackagingElement<?>)element;
if (processed.add(element) && substitutionParameters.shouldSubstitute(complexElement)) {
final List<? extends PackagingElement<?>> substitution = complexElement.getSubstitution(context, artifactType);
if (substitution != null) {
final PackagingNodeSource source = new PackagingNodeSource(complexElement, parentNode, parentElement, nodeSources);
addNodes(substitution, parentNode, parentElement, context, substitutionParameters, Collections.singletonList(source), nodes,
artifactType, processed);
continue;
}
}
nodes.add(new ComplexPackagingElementNode(complexElement, context, parentNode, parentElement, substitutionParameters, nodeSources));
}
else {
nodes.add(new PackagingElementNode<PackagingElement<?>>(element, context, parentNode, parentElement, nodeSources));
}
}
}
示例4: ComplexPackagingElementNode
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
public ComplexPackagingElementNode(ComplexPackagingElement<?> element, ArtifactEditorContext context, CompositePackagingElementNode parentNode,
CompositePackagingElement<?> parentElement,
ComplexElementSubstitutionParameters substitutionParameters, Collection<PackagingNodeSource> nodeSources) {
super(element, context, parentNode, parentElement, nodeSources);
mySubstitutionParameters = substitutionParameters;
}
示例5: createRootNode
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
@NotNull
public static ArtifactRootNode createRootNode(ArtifactEditorImpl artifactsEditor, ArtifactEditorContext context,
ComplexElementSubstitutionParameters substitutionParameters, final ArtifactType artifactType) {
return new ArtifactRootNode(artifactsEditor, context, substitutionParameters, artifactType);
}
示例6: ArtifactRootNode
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
public ArtifactRootNode(ArtifactEditorEx artifactEditor, ArtifactEditorContext context,
ComplexElementSubstitutionParameters substitutionParameters, ArtifactType artifactType) {
super(artifactEditor.getRootElement(), context, null, null, substitutionParameters, Collections.<PackagingNodeSource>emptyList(),
artifactType);
}
示例7: createRootNode
import com.intellij.openapi.roots.ui.configuration.artifacts.ComplexElementSubstitutionParameters; //导入依赖的package包/类
@Nonnull
public static ArtifactRootNode createRootNode(ArtifactEditorImpl artifactsEditor, ArtifactEditorContext context,
ComplexElementSubstitutionParameters substitutionParameters, final ArtifactType artifactType) {
return new ArtifactRootNode(artifactsEditor, context, substitutionParameters, artifactType);
}