aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2010-06-21 12:58:20 -0700
committerRaphael Moll <ralf@android.com>2010-06-21 13:07:18 -0700
commit8c7e29f5cb9f1200959f3beb5aa03eacf210b004 (patch)
tree06b41c29af77caabce01a1ce32b4f5e9e7cc423a /docs
parent51c30746b6fa8020c8db11796d07bde93057c8f5 (diff)
downloadsdk-8c7e29f5cb9f1200959f3beb5aa03eacf210b004.zip
sdk-8c7e29f5cb9f1200959f3beb5aa03eacf210b004.tar.gz
sdk-8c7e29f5cb9f1200959f3beb5aa03eacf210b004.tar.bz2
ADT GLE2: cleanup some constants and review feedback.
Change-Id: Ib9f3473d49bc27dfb87d29855a832a21bdcf3100
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/gscripts.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/docs/gscripts.txt b/docs/gscripts.txt
new file mode 100755
index 0000000..e3f5d18
--- /dev/null
+++ b/docs/gscripts.txt
@@ -0,0 +1,49 @@
+This file describes the "gscripts" folder in ADT (Android Eclipse Plugin).
+
+
+----------
+- Overview
+----------
+
+ADT is the Android Eclipse Plugin. The plugin delivers a new editor, called
+the the Graphical Layout Editor (a.k.a. GLE2), to visually edit Android layout
+XML files.
+
+Details on how to handle the various Android views and layouts is not
+hardcoded in the GLE2 itself. Instead it is differed to a bunch of Groovy
+scripts.
+
+
+(TODO: expand/replace with a better overview of implementation... goal is
+to use this a doc for 3rd-party projects to implement their own rules.)
+
+
+
+-------------
+- Groovy tips
+-------------
+
+
+- Debugging:
+
+If you run ADT in debug mode and want to trace into Groovy
+methods, you need to tell Eclipse where to find the Groovy source code.
+
+To do this:
+- in Eclipse, import an existing project
+- Select the project at <android-source-tree>/prebuilt/common/groovy/
+- This will add a new Eclipse project named "GroovySrc" which contains
+ a single zip file with the groovy source.
+- ADT is already pre-configured to find the Groovy source in the GroovySrc
+ project.
+
+
+
+- Private methods:
+
+Be careful when adding new helper methods in the BaseView
+or BaseLayout classes.
+
+Due to the way Groovy looks up methods, private methods will *not* be found by
+same-class methods if invoked by a derived class in the context of a closure
+(which is about the case of all these helper methods.)