當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。