Search in sources :

Example 1 with FavoritesTreeViewPanel

use of com.intellij.ide.favoritesTreeView.FavoritesTreeViewPanel in project intellij-community by JetBrains.

the class FavoritesViewToolWindowFactory method createToolWindowContent.

@Override
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {
    final ContentManager contentManager = toolWindow.getContentManager();
    final FavoritesTreeViewPanel panel = new FavoritesPanel(project).getPanel();
    panel.setupToolWindow((ToolWindowEx) toolWindow);
    final Content content = contentManager.getFactory().createContent(panel, null, false);
    contentManager.addContent(content);
}
Also used : FavoritesPanel(com.intellij.ide.favoritesTreeView.FavoritesPanel) FavoritesTreeViewPanel(com.intellij.ide.favoritesTreeView.FavoritesTreeViewPanel) Content(com.intellij.ui.content.Content) ContentManager(com.intellij.ui.content.ContentManager)

Aggregations

FavoritesPanel (com.intellij.ide.favoritesTreeView.FavoritesPanel)1 FavoritesTreeViewPanel (com.intellij.ide.favoritesTreeView.FavoritesTreeViewPanel)1 Content (com.intellij.ui.content.Content)1 ContentManager (com.intellij.ui.content.ContentManager)1