// TODO find a better way to reload structure view ;-)
ApplicationManager.getApplication().invokeLater(new Runnable()
{
public void run()
{
StructureViewFactoryImpl structureViewFactory =
(StructureViewFactoryImpl) StructureViewFactoryEx.getInstance(project);
StructureViewWrapperImpl structureViewWrapper =
(StructureViewWrapperImpl) structureViewFactory.getStructureViewWrapper();
structureViewWrapper.rebuild();
}
});
}