diff options
author | Xavier Ducrohet <xav@android.com> | 2010-12-01 15:17:07 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-12-01 15:19:22 -0800 |
commit | 258742f83960f087b1a20fc34bac08dcbdd4100e (patch) | |
tree | d0ae436acdb2007fe065e9f815e7b22bde864bde /eclipse/plugins/com.android.ide.eclipse.adt/src/com | |
parent | a4784054ddf4e10b40af2a864ab7eb592966c8d1 (diff) | |
download | sdk-258742f83960f087b1a20fc34bac08dcbdd4100e.zip sdk-258742f83960f087b1a20fc34bac08dcbdd4100e.tar.gz sdk-258742f83960f087b1a20fc34bac08dcbdd4100e.tar.bz2 |
Layoutlib API: updated API for insert/move/remove child.
Also added some new SceneStatus enums.
Change-Id: I225c58201d81cb1109d1d533fea48b6eacb2e286
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com')
-rwxr-xr-x | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java index ed42207..b431f07 100755 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java @@ -86,7 +86,6 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; import org.eclipse.ui.views.contentoutline.IContentOutlinePage; import org.w3c.dom.Node; -import java.awt.image.BufferedImage; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -997,9 +996,9 @@ class LayoutCanvas extends Canvas { new IAnimationListener() { private int mCount = 0; private boolean mPendingDrawing = false; - public void onNewFrame(final BufferedImage image) { + public void onNewFrame(LayoutScene scene) { mCount++; - mImageOverlay.setImage(image); + mImageOverlay.setImage(scene.getImage()); synchronized (this) { if (mPendingDrawing == false) { getDisplay().asyncExec(new Runnable() { |