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
public static Point getDirectionVector(int distance, int direction) {
        switch (direction) {
        case SWT.TOP:
            return new Point(0, -distance);
        case SWT.BOTTOM:
            return new Point(0, distance);
        case SWT.LEFT:
            return new Point(-distance, 0);
        case SWT.RIGHT:
            return new Point(distance, 0);
        }
        return new Point(0, 0);
    }
    /**
     * Returns the point in the center of the given rectangle.
     * 
     * @param rect rectangle being computed
     * @return a Point at the center of the given rectangle.
     * @since 3.0
     */
    public static Point centerPoint(Rectangle rect) {
        return new Point(rect.x + rect.width / 2, rect.y + rect.height / 2);
    }
    /**
     * Returns a copy of the given point
     * 
     * @param toCopy point to copy
     * @return a copy of the given point
     */
    public static Point copy(Point toCopy) {