• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java XmlStructureViewBuilderProvider类的典型用法和代码示例

java 1次浏览

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

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

示例1: getStructureViewBuilder

点赞 3

import com.intellij.ide.structureView.xml.XmlStructureViewBuilderProvider; //导入依赖的package包/类
@Override
@Nullable
public StructureViewBuilder getStructureViewBuilder(final PsiFile psiFile) {
  if (!(psiFile instanceof XmlFile)) {
    return null;
  }
  StructureViewBuilder builder = getStructureViewBuilderForExtensions(psiFile);
  if (builder != null) {
    return builder;
  }

  for (XmlStructureViewBuilderProvider xmlStructureViewBuilderProvider : getStructureViewBuilderProviders()) {
    final StructureViewBuilder structureViewBuilder = xmlStructureViewBuilderProvider.createStructureViewBuilder((XmlFile)psiFile);
    if (structureViewBuilder != null) {
      return structureViewBuilder;
    }
  }

  return new TreeBasedStructureViewBuilder() {
    @Override
    @NotNull
    public StructureViewModel createStructureViewModel(@Nullable Editor editor) {
      return new XmlStructureViewTreeModel((XmlFile)psiFile, editor);
    }
  };
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:27,
代码来源:XmlStructureViewBuilderFactory.java

示例2: getStructureViewBuilder

点赞 2

import com.intellij.ide.structureView.xml.XmlStructureViewBuilderProvider; //导入依赖的package包/类
@Override
@Nullable
public StructureViewBuilder getStructureViewBuilder(final PsiFile psiFile)
{
	if(!(psiFile instanceof XmlFile))
	{
		return null;
	}
	StructureViewBuilder builder = getStructureViewBuilderForExtensions(psiFile);
	if(builder != null)
	{
		return builder;
	}

	for(XmlStructureViewBuilderProvider xmlStructureViewBuilderProvider : getStructureViewBuilderProviders())
	{
		final StructureViewBuilder structureViewBuilder = xmlStructureViewBuilderProvider.createStructureViewBuilder((XmlFile) psiFile);
		if(structureViewBuilder != null)
		{
			return structureViewBuilder;
		}
	}

	return new TreeBasedStructureViewBuilder()
	{
		@Override
		@NotNull
		public StructureViewModel createStructureViewModel(@Nullable Editor editor)
		{
			return new XmlStructureViewTreeModel((XmlFile) psiFile, editor);
		}
	};
}
 

开发者ID:consulo,
项目名称:consulo-xml,
代码行数:34,
代码来源:XmlStructureViewBuilderFactory.java

示例3: getStructureViewBuilderProviders

点赞 2

import com.intellij.ide.structureView.xml.XmlStructureViewBuilderProvider; //导入依赖的package包/类
private static XmlStructureViewBuilderProvider[] getStructureViewBuilderProviders() {
  return (XmlStructureViewBuilderProvider[])Extensions.getExtensions(XmlStructureViewBuilderProvider.EXTENSION_POINT_NAME);
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:4,
代码来源:XmlStructureViewBuilderFactory.java

示例4: getStructureViewBuilderProviders

点赞 2

import com.intellij.ide.structureView.xml.XmlStructureViewBuilderProvider; //导入依赖的package包/类
private static XmlStructureViewBuilderProvider[] getStructureViewBuilderProviders()
{
	return (XmlStructureViewBuilderProvider[]) Extensions.getExtensions(XmlStructureViewBuilderProvider.EXTENSION_POINT_NAME);
}
 

开发者ID:consulo,
项目名称:consulo-xml,
代码行数:5,
代码来源:XmlStructureViewBuilderFactory.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)