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