Class StructureTreeModelFactory
java.lang.Object
com.redhat.devtools.intellij.common.tree.StructureTreeModelFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 theStructureTreeModelthrough reflection as StructureTreeModel does not have a stable API.
-
Constructor Details
-
StructureTreeModelFactory
public StructureTreeModelFactory()
-
-
Method Details
-
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 IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException Builds theStructureTreeModelthrough reflection as StructureTreeModel does not have a stable API.- Parameters:
structure- the structure to associateproject- the IJ project- Returns:
- the build model
- Throws:
IllegalAccessException- if the model class could not be loadedInvocationTargetException- if the model class could not be loadedInstantiationException- if the model could not be instantiatedNoSuchMethodException- if the model class could not be loaded
-