Bug 53649 [Workbench] Minimized views should yield real estate
Consider opening Java perspective with: 1. package explorer on the left (as usual) 2. an editor and the problems view stacked on top of each other on the right (as usual) If you 'minimize' the problems view, the editor gets the real estate previously occupied by it. If you 'minimize' the package explorer, it collapses into its title bar but the editor or problems view does not get anything out of it. All you see is a gray panel on the left. It's only beneficial to minimize views if there is another view below it. It would be good if views always yield its previously occupied space to the rest of the workbench on minimize. It could give priority to open views vertically above/below it so that current behaviour is not lost :)
bundles/org.eclipse.jface/src/org/eclipse/jface/util/Geometry.java
/**
     * Converts the given boolean into an SWT orientation constant.
     * 
     * @param horizontal if true, returns SWT.HORIZONTAL. If false, returns SWT.VERTICAL 
     * @return SWT.HORIZONTAL or SWT.VERTICAL.
     * @since 3.0
     */
    public static int getSwtHorizontalOrVerticalConstant(boolean horizontal) {
        if (horizontal) {
            return SWT.HORIZONTAL;
        } else {
            return SWT.VERTICAL;
        }
    }
    /**
     * Returns true iff the given SWT side constant corresponds to a horizontal side
     * of a rectangle. That is, returns true for the top and bottom but false for the
     * left and right.
     * 
     * @param swtSideConstant one of SWT.TOP, SWT.BOTTOM, SWT.LEFT, or SWT.RIGHT
     * @return true iff the given side is horizontal.
     * @since 3.0
     */
    public static boolean isHorizontal(int swtSideConstant) {
        return !(swtSideConstant == SWT.LEFT || swtSideConstant == SWT.RIGHT);
    }
    /**
     * Moves the given rectangle by the given delta.
     * 
     * @param rect rectangle to move (will be modified)