I am opening a customised StructureView like this:
StructureView view = builder.createStructureView(editor, project);
SwitchBrowserDialog dialog = new SwitchBrowserDialog(view.getComponent());
The problem is that when IDEA exits, I receive the following error message:
com.intellij.ide.structureView.newStructureView.StructureViewComponent[.....] of class class com.intellij.ide.structureView.newStructureView.StructureViewComponent
If I call Disposer.dispose(view) after the dialog closes, the error goes away but the StructureView fails to operate on subsequent openings (perhaps the object returned is a singleton).
If I try to link the StructureView with a parent, I can find no implementers of Disposable that make sense in this context.