本文整理汇总了Java中com.intellij.ide.structureView.xml.XmlStructureViewElementProvider类的典型用法代码示例。如果您正苦于以下问题:Java XmlStructureViewElementProvider类的具体用法?Java XmlStructureViewElementProvider怎么用?Java XmlStructureViewElementProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XmlStructureViewElementProvider类属于com.intellij.ide.structureView.xml包,在下文中一共展示了XmlStructureViewElementProvider类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStructureViewTreeElements
import com.intellij.ide.structureView.xml.XmlStructureViewElementProvider; //导入依赖的package包/类
protected static Collection<StructureViewTreeElement> getStructureViewTreeElements(XmlTag[] subTags) {
final XmlStructureViewElementProvider[] providers =
(XmlStructureViewElementProvider[])Extensions.getExtensions(XmlStructureViewElementProvider.EXTENSION_POINT_NAME);
return ContainerUtil.map2List(subTags, new Function<XmlTag, StructureViewTreeElement>() {
@Override
public StructureViewTreeElement fun(final XmlTag xmlTag) {
for (final XmlStructureViewElementProvider provider : providers) {
final StructureViewTreeElement element = provider.createCustomXmlTagTreeElement(xmlTag);
if (element != null) {
return element;
}
}
return new XmlTagTreeElement(xmlTag);
}
});
}
示例2: getStructureViewTreeElements
import com.intellij.ide.structureView.xml.XmlStructureViewElementProvider; //导入依赖的package包/类
protected static Collection<StructureViewTreeElement> getStructureViewTreeElements(XmlTag[] subTags) {
final XmlStructureViewElementProvider[] providers =
(XmlStructureViewElementProvider[])Extensions.getExtensions(XmlStructureViewElementProvider.EXTENSION_POINT_NAME);
return ContainerUtil.map2List(subTags, new Function<XmlTag, StructureViewTreeElement>() {
public StructureViewTreeElement fun(final XmlTag xmlTag) {
for (final XmlStructureViewElementProvider provider : providers) {
final StructureViewTreeElement element = provider.createCustomXmlTagTreeElement(xmlTag);
if (element != null) {
return element;
}
}
return new XmlTagTreeElement(xmlTag);
}
});
}
示例3: getStructureViewTreeElements
import com.intellij.ide.structureView.xml.XmlStructureViewElementProvider; //导入依赖的package包/类
protected static Collection<StructureViewTreeElement> getStructureViewTreeElements(XmlTag[] subTags) {
final XmlStructureViewElementProvider[] providers = XmlStructureViewElementProvider.EP_NAME.getExtensions();
return ContainerUtil.map2List(subTags, new Function<XmlTag, StructureViewTreeElement>() {
public StructureViewTreeElement fun(final XmlTag xmlTag) {
for (final XmlStructureViewElementProvider provider : providers) {
final StructureViewTreeElement element = provider.createCustomXmlTagTreeElement(xmlTag);
if (element != null) {
return element;
}
}
return new XmlTagTreeElement(xmlTag);
}
});
}