Bug 67311 [ViewMgmt] [RCP] Other views may be docked with standalone views
RC2 Steps to reproduce: 1) Modify the Browser example plugin.xml so that the Browser perspective is not fixed. 2) Modify the first line of BrowserPerspectiveFactory.createInitialLayout to be: layout.addStandaloneView(BrowserApp.BROWSER_VIEW_ID, false, IPageLayout.RIGHT, .25f, IPageLayout.ID_EDITOR_AREA); 2) Launch the Browser 3) Show the history view 4) Drag the history view on top of the Browser view. This should not be possible should it?
bundles/org.eclipse.jface/src/org/eclipse/jface/util/Geometry.java
*/
    public static int getDistanceFromEdge(Rectangle rectangle, Point testPoint,
            int edgeOfInterest) {
        switch (edgeOfInterest) {
        case SWT.TOP:
            return testPoint.y - rectangle.y;
        case SWT.BOTTOM:
            return rectangle.y + rectangle.height - testPoint.y;
        case SWT.LEFT:
            return testPoint.x - rectangle.x;
        case SWT.RIGHT:
            return rectangle.x + rectangle.width - testPoint.x;
        }
        return 0;
    }
    /**
     * Extrudes the given edge inward by the given distance. That is, if one side of the rectangle
     * was sliced off with a given thickness, this returns the rectangle that forms the slice. Note
     * that the returned rectangle will be inside the given rectangle if size > 0.
     * 
     * @param toExtrude the rectangle to extrude. The resulting rectangle will share three sides
     * with this rectangle.
     * @param size distance to extrude. A negative size will extrude outwards (that is, the resulting
     * rectangle will overlap the original iff this is positive). 
     * @param orientation the side to extrude.  One of SWT.LEFT, SWT.RIGHT, SWT.TOP, or SWT.BOTTOM. The 
     * resulting rectangle will always share this side with the original rectangle.
     * @return a rectangle formed by extruding the given side of the rectangle by the given distance.
     * @since 3.0
     */
    public static Rectangle getExtrudedEdge(Rectangle toExtrude, int size,