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


Java ComplexPackagingElementType类代码示例

本文整理汇总了Java中com.intellij.packaging.elements.ComplexPackagingElementType的典型用法代码示例。如果您正苦于以下问题:Java ComplexPackagingElementType类的具体用法?Java ComplexPackagingElementType怎么用?Java ComplexPackagingElementType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getFileToArtifactsMap

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public CachedValue<MultiValuesMap<VirtualFile, Artifact>> getFileToArtifactsMap() {
  if (myFile2Artifacts == null) {
    myFile2Artifacts =
      CachedValuesManager.getManager(myProject).createCachedValue(new CachedValueProvider<MultiValuesMap<VirtualFile, Artifact>>() {
        public Result<MultiValuesMap<VirtualFile, Artifact>> compute() {
          MultiValuesMap<VirtualFile, Artifact> result = computeFileToArtifactsMap();
          List<ModificationTracker> trackers = new ArrayList<ModificationTracker>();
          trackers.add(ArtifactManager.getInstance(myProject).getModificationTracker());
          for (ComplexPackagingElementType<?> type : PackagingElementFactory.getInstance().getComplexElementTypes()) {
            ContainerUtil.addIfNotNull(type.getAllSubstitutionsModificationTracker(myProject), trackers);
          }
          return Result.create(result, trackers.toArray(new ModificationTracker[trackers.size()]));
        }
      }, false);
  }
  return myFile2Artifacts;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:ArtifactBySourceFileFinderImpl.java

示例2: getState

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
@Override
public ArtifactEditorSettingsState getState() {
  final ArtifactEditorSettingsState state = new ArtifactEditorSettingsState();
  state.mySortElements = mySortElements;
  for (ComplexPackagingElementType<?> type : myTypesToShowContent) {
    state.myTypesToShowContentIds.add(type.getId());
  }
  return state;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ArtifactEditorSettings.java

示例3: loadState

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
@Override
public void loadState(ArtifactEditorSettingsState state) {
  mySortElements = state.mySortElements;
  myTypesToShowContent.clear();
  for (String id : state.myTypesToShowContentIds) {
    final PackagingElementType<?> type = PackagingElementFactory.getInstance().findElementType(id);
    if (type instanceof ComplexPackagingElementType<?>) {
      myTypesToShowContent.add((ComplexPackagingElementType<?>)type);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:ArtifactEditorSettings.java

示例4: setShowContent

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public void setShowContent(ComplexPackagingElementType<?> type, boolean showContent) {
  if (showContent) {
    myTypesToSubstitute.add(type);
  }
  else {
    myTypesToSubstitute.remove(type);
  }
  final Iterator<ComplexPackagingElement<?>> iterator = mySubstituted.iterator();
  while (iterator.hasNext()) {
    if (iterator.next().getType().equals(type)) {
      iterator.remove();
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ComplexElementSubstitutionParameters.java

示例5: ToggleShowElementContentAction

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public ToggleShowElementContentAction(ComplexPackagingElementType<?> type, ArtifactEditorImpl editor) {
  super(type.getShowContentActionText());
  myType = type;
  myEditor = editor;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ToggleShowElementContentAction.java

示例6: ArtifactEditorSettings

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public ArtifactEditorSettings(boolean sortElements, Collection<ComplexPackagingElementType<?>> typesToShowContent) {
  mySortElements = sortElements;
  myTypesToShowContent.addAll(typesToShowContent);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ArtifactEditorSettings.java

示例7: getTypesToShowContent

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public List<ComplexPackagingElementType<?>> getTypesToShowContent() {
  return myTypesToShowContent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ArtifactEditorSettings.java

示例8: setTypesToShowContent

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public void setTypesToShowContent(Collection<ComplexPackagingElementType<?>> typesToShowContent) {
  myTypesToShowContent.clear();
  myTypesToShowContent.addAll(typesToShowContent);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ArtifactEditorSettings.java

示例9: shouldSubstitute

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public boolean shouldSubstitute(@NotNull ComplexPackagingElement<?> element) {
  final ComplexPackagingElementType<?> type = (ComplexPackagingElementType<?>)element.getType();
  return myTypesToSubstitute.contains(type) || mySubstituted.contains(element);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ComplexElementSubstitutionParameters.java

示例10: getTypesToSubstitute

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public Set<ComplexPackagingElementType<?>> getTypesToSubstitute() {
  return Collections.unmodifiableSet(myTypesToSubstitute);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ComplexElementSubstitutionParameters.java

示例11: isShowContentForType

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public boolean isShowContentForType(@NotNull ComplexPackagingElementType type) {
  return myTypesToSubstitute.contains(type);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ComplexElementSubstitutionParameters.java

示例12: setTypesToShowContent

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public void setTypesToShowContent(Collection<ComplexPackagingElementType<?>> types) {
  myTypesToSubstitute.clear();
  myTypesToSubstitute.addAll(types);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ComplexElementSubstitutionParameters.java

示例13: shouldSubstitute

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public boolean shouldSubstitute(@Nonnull ComplexPackagingElement<?> element) {
  final ComplexPackagingElementType<?> type = (ComplexPackagingElementType<?>)element.getType();
  return myTypesToSubstitute.contains(type) || mySubstituted.contains(element);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:ComplexElementSubstitutionParameters.java

示例14: isShowContentForType

import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public boolean isShowContentForType(@Nonnull ComplexPackagingElementType type) {
  return myTypesToSubstitute.contains(type);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:ComplexElementSubstitutionParameters.java


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