OSDN Git Service

Only allow drag images for canvas drags
authorTor Norbye <tnorbye@google.com>
Wed, 15 Dec 2010 00:30:29 +0000 (16:30 -0800)
committerTor Norbye <tnorbye@google.com>
Wed, 15 Dec 2010 01:10:22 +0000 (17:10 -0800)
commit4334bd632c12d4723c79594fc23b5c7df9ed84bd
tree696325413c3b23c563d02b3f4040d9e70f98c57e
parent70d98af52a914a1055dad15992e91b18310302c2
Only allow drag images for canvas drags

The outline view "reuses" the drag source listener for the canvas,
doing some tricks with mouse events to make it look like the drag is
originating within the canvas. However, the image previews of drags do
not work well in this case. Therefore, stash data on the drag souce
such that the drag source handler can only do image previews when the
drag source is really the canvas instead of the outline page.

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