OSDN Git Service

Fix drag and drop of unselected item
authorTor Norbye <tnorbye@google.com>
Tue, 12 Oct 2010 21:32:13 +0000 (14:32 -0700)
committerTor Norbye <tnorbye@google.com>
Tue, 12 Oct 2010 21:32:13 +0000 (14:32 -0700)
commitc99d904d53439c715e552d04304306a749e72a91
tree1e28002f14370cfc7843395968e3384c70077b79
parent80f93bac5ce5ef4ca4386425b69a40ce0180e8eb
Fix drag and drop of unselected item

If you have no selection and start dragging a view, nothing
happens. This fixes this such that when dragging begins, the item you
are dragging becomes selected. This also works where you have a
selection and you start dragging some other (non-selected) item.

Change-Id: I20fc400504f375b75c1ed17ec4850420a8500edd
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/CanvasDropListener.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java