OSDN Git Service

ADT: Make GLE2 the default.
authorRaphael Moll <ralf@android.com>
Thu, 26 Aug 2010 05:06:04 +0000 (22:06 -0700)
committerRaphael Moll <ralf@android.com>
Thu, 26 Aug 2010 05:06:04 +0000 (22:06 -0700)
Export USE_GLE1 to something != 0 to force GLE1.

Change-Id: I525bc276f3ad096d6ae64508f4c9808f52684b02

eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/LayoutEditor.java

index ab3b1f5..0195105 100644 (file)
@@ -182,12 +182,14 @@ public class LayoutEditor extends AndroidXmlEditor implements IShowEditorInput,
                 // the user, or through a configuration change in the configuration selector.)
                 if (mGraphicalEditor == null) {
 
-                    String useGle2 = System.getenv("USE_GLE2");     //$NON-NLS-1$
+                    String useGle1 = System.getenv("USE_GLE1");     //$NON-NLS-1$
 
-                    if (useGle2 != null && !useGle2.equals("0")) {  //$NON-NLS-1$
-                        mGraphicalEditor = new GraphicalEditorPart(this);
-                    } else {
+                    if (useGle1 != null && !useGle1.equals("0")) {  //$NON-NLS-1$
+                        // If USE_GLE1 exists and is non-zero, use the old GLE v1
                         mGraphicalEditor = new GraphicalLayoutEditor(this);
+                    } else {
+                        // Otherwise we now default to the new GLE v2
+                        mGraphicalEditor = new GraphicalEditorPart(this);
                     }
 
                     mGraphicalEditorIndex = addPage(mGraphicalEditor, getEditorInput());