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


Java ComplexElementSubstitutionParameters类代码示例

本文整理汇总了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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:CompositePackagingElementNode.java

示例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));
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:39,代码来源:PackagingTreeNodeFactory.java

示例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));
    }
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:39,代码来源:PackagingTreeNodeFactory.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ComplexPackagingElementNode.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:PackagingTreeNodeFactory.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactRootNode.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:PackagingTreeNodeFactory.java


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