OSDN Git Service

Combine DescDragSourceListener and PreviewDragSourceEffect
authorTor Norbye <tnorbye@google.com>
Fri, 21 Jan 2011 03:56:08 +0000 (19:56 -0800)
committerTor Norbye <tnorbye@google.com>
Tue, 25 Jan 2011 22:51:09 +0000 (14:51 -0800)
commitdfd73ee638e86ca98e55e51c44f838985f784754
treeea2a1018920984d2f7eed8d7c2d0241d6c29333b
parentbf900676cc3939a67efc8d7cc3100f5996463492
Combine DescDragSourceListener and PreviewDragSourceEffect

It turns out that a DragSource listener can also set a drag preview
effect, so we don't need to have two separate classes for this; this
was slightly tricky because the drag source needs to get the image
from the preview drag source effect in order to record the right
offsets for the drag.

This changeset rolls the two classes into one, the original drag
source.

Change-Id: I249736c13e49f06886318ea64dc8de40e832d216
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java