Class StructureTreeModelFactory


  • public class StructureTreeModelFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.intellij.ui.tree.StructureTreeModel<com.intellij.ide.util.treeView.AbstractTreeStructure> create​(com.intellij.ide.util.treeView.AbstractTreeStructure structure, com.intellij.openapi.project.Project project)
      Builds the StructureTreeModel through reflection as StructureTreeModel does not have a stable API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StructureTreeModelFactory

        public StructureTreeModelFactory()
    • Method Detail

      • create

        public static com.intellij.ui.tree.StructureTreeModel<com.intellij.ide.util.treeView.AbstractTreeStructure> create​(com.intellij.ide.util.treeView.AbstractTreeStructure structure,
                                                                                                                           com.intellij.openapi.project.Project project)
                                                                                                                    throws java.lang.IllegalAccessException,
                                                                                                                           java.lang.reflect.InvocationTargetException,
                                                                                                                           java.lang.InstantiationException,
                                                                                                                           java.lang.NoSuchMethodException
        Builds the StructureTreeModel through reflection as StructureTreeModel does not have a stable API.
        Parameters:
        structure - the structure to associate
        project - the IJ project
        Returns:
        the build model
        Throws:
        java.lang.IllegalAccessException - if the model class could not be loaded
        java.lang.reflect.InvocationTargetException - if the model class could not be loaded
        java.lang.InstantiationException - if the model could not be instantiated
        java.lang.NoSuchMethodException - if the model class could not be loaded