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
* Positions are in screen coordinates (ie: a point is to the upper-left of the
     * rectangle if its x and y coordinates are smaller than any point in the rectangle)
     *  
     * @param boundary normalized boundary rectangle 
     * @param toTest point whose relative position to the rectangle is being computed
     * @return one of SWT.LEFT | SWT.TOP, SWT.TOP, SWT.RIGHT | SWT.TOP, SWT.LEFT, 0,
     * SWT.RIGHT, SWT.LEFT | SWT.BOTTOM, SWT.BOTTOM, SWT.RIGHT | SWT.BOTTOM
     * @since 3.0
     */
    public static int getRelativePosition(Rectangle boundary, Point toTest) {
        int result = 0;
        if (toTest.x < boundary.x) {
            result |= SWT.LEFT;
        } else if (toTest.x >= boundary.x + boundary.width) {
            result |= SWT.RIGHT;
        }
        if (toTest.y < boundary.y) {
            result |= SWT.TOP;
        } else if (toTest.y >= boundary.y + boundary.height) {
            result |= SWT.BOTTOM;
        }
        return result;
    }
    /**
     * Returns the edge of the given rectangle is closest to the given
     * point.
     * 
     * @param boundary rectangle to test
     * @param toTest point to compare
     * @return one of SWT.LEFT, SWT.RIGHT, SWT.TOP, or SWT.BOTTOM