Example usage for com.intellij.openapi.ui SimpleToolWindowPanel SimpleToolWindowPanel

List of usage examples for com.intellij.openapi.ui SimpleToolWindowPanel SimpleToolWindowPanel

Introduction

In this page you can find the example usage for com.intellij.openapi.ui SimpleToolWindowPanel SimpleToolWindowPanel.

Prototype

public SimpleToolWindowPanel(boolean vertical) 

Source Link

Usage

From source file:com.intellij.ide.projectView.impl.ProjectViewImpl.java

License:Apache License

private void constructUi() {
    myViewContentPanel = new JPanel();
    myPanel = new SimpleToolWindowPanel(true).setProvideQuickActions(false);
    myPanel.setContent(myViewContentPanel);
}

From source file:org.jetbrains.plugins.groovy.annotator.intentions.dynamic.DynamicToolWindowWrapper.java

License:Apache License

private JPanel buildBigPanel() {
    myBigPanel = new SimpleToolWindowPanel(true);

    final ActionManager actionManager = ActionManager.getInstance();
    final ActionGroup actionGroup = (ActionGroup) actionManager.getAction("Groovy.Dynamic.Toolbar");
    ActionToolbar actionToolbar = actionManager.createActionToolbar("Groovy.Dynamic.Toolbar", actionGroup,
            true);// www  .ja v a2 s .c  om
    myBigPanel.setToolbar(actionToolbar.getComponent());

    myBigPanel.setBackground(UIUtil.getFieldForegroundColor());

    final JPanel panel = new JPanel(new BorderLayout());
    myBigPanel.add(panel, BorderLayout.CENTER);

    myTreeTablePanel = new JPanel(new BorderLayout());
    rebuildTreePanel();

    panel.add(myTreeTablePanel);
    myBigPanel.setPreferredSize(new Dimension(200, myBigPanel.getHeight()));

    myBigPanel.revalidate();
    return myBigPanel;
}