Example usage for com.intellij.openapi.wm ToolWindowAnchor TOP

List of usage examples for com.intellij.openapi.wm ToolWindowAnchor TOP

Introduction

In this page you can find the example usage for com.intellij.openapi.wm ToolWindowAnchor TOP.

Prototype

ToolWindowAnchor TOP

To view the source code for com.intellij.openapi.wm ToolWindowAnchor TOP.

Click Source Link

Usage

From source file:com.intellij.ide.actions.ResizeToolWindowAction.java

License:Apache License

protected void stretch(ToolWindow wnd, boolean isHorizontalStretching, boolean isIncrementAction) {
    ToolWindowScrollable scrollable = getScrollable(wnd, isHorizontalStretching);
    if (scrollable == null)
        return;/*  ww w. j a v a 2  s. c  om*/

    ToolWindowAnchor anchor = wnd.getAnchor();
    if (isHorizontalStretching && !anchor.isHorizontal()) {
        incWidth(wnd, scrollable.getNextHorizontalScroll(),
                (anchor == ToolWindowAnchor.LEFT) == isIncrementAction);
    } else if (!isHorizontalStretching && anchor.isHorizontal()) {
        incHeight(wnd, scrollable.getNextVerticalScroll(),
                (anchor == ToolWindowAnchor.TOP) != isIncrementAction);
    }
}