use of com.intellij.ide.structureView.StructureViewModel in project intellij-plugins by JetBrains.
the class CucumberStructureViewCucumberTest method getTopLevelItems.
private Object[] getTopLevelItems() {
final FileType fileType = myFile.getFileType();
TreeBasedStructureViewBuilder builder = (TreeBasedStructureViewBuilder) StructureViewBuilder.PROVIDER.getStructureViewBuilder(fileType, myFile, getProject());
final StructureViewModel structureViewModel = builder.createStructureViewModel(getEditor());
Object[] children = structureViewModel.getRoot().getChildren();
structureViewModel.dispose();
return children;
}
Aggregations