import com.intellij.ui.content.ContentFactoryImpl;
public class DatabaseBrowserToolWindowFactory implements ToolWindowFactory, DumbAware{
@Override
public void createToolWindowContent(Project project, ToolWindow toolWindow) {
BrowserToolWindowForm toolWindowForm = DatabaseBrowserManager.getInstance(project).getToolWindowForm();
ContentFactory contentFactory = new ContentFactoryImpl();
Content content = contentFactory.createContent(toolWindowForm.getComponent(), null, false);
toolWindow.getContentManager().addContent(content);
toolWindow.setIcon(Icons.WINDOW_DATABASE_BROWSER);
}