public boolean isActionActive(String name) {
   return !myProject.isDisposed()
       && StructureViewFactoryEx.getInstanceEx(myProject).isActionActive(name);
 }
 public void setActionActive(String name, boolean state) {
   StructureViewFactoryEx.getInstanceEx(myProject).setActiveAction(name, state);
   rebuild();
   TreeUtil.expand(getTree(), 2);
 }