本文整理汇总了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;
}
示例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;
}
示例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);
}
}
}
示例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();
}
}
}
示例5: ToggleShowElementContentAction
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public ToggleShowElementContentAction(ComplexPackagingElementType<?> type, ArtifactEditorImpl editor) {
super(type.getShowContentActionText());
myType = type;
myEditor = editor;
}
示例6: ArtifactEditorSettings
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public ArtifactEditorSettings(boolean sortElements, Collection<ComplexPackagingElementType<?>> typesToShowContent) {
mySortElements = sortElements;
myTypesToShowContent.addAll(typesToShowContent);
}
示例7: getTypesToShowContent
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public List<ComplexPackagingElementType<?>> getTypesToShowContent() {
return myTypesToShowContent;
}
示例8: setTypesToShowContent
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public void setTypesToShowContent(Collection<ComplexPackagingElementType<?>> typesToShowContent) {
myTypesToShowContent.clear();
myTypesToShowContent.addAll(typesToShowContent);
}
示例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);
}
示例10: getTypesToSubstitute
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public Set<ComplexPackagingElementType<?>> getTypesToSubstitute() {
return Collections.unmodifiableSet(myTypesToSubstitute);
}
示例11: isShowContentForType
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public boolean isShowContentForType(@NotNull ComplexPackagingElementType type) {
return myTypesToSubstitute.contains(type);
}
示例12: setTypesToShowContent
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public void setTypesToShowContent(Collection<ComplexPackagingElementType<?>> types) {
myTypesToSubstitute.clear();
myTypesToSubstitute.addAll(types);
}
示例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);
}
示例14: isShowContentForType
import com.intellij.packaging.elements.ComplexPackagingElementType; //导入依赖的package包/类
public boolean isShowContentForType(@Nonnull ComplexPackagingElementType type) {
return myTypesToSubstitute.contains(type);
}