grab contents of edit area before run

This commit is contained in:
benfry
2011-01-26 22:20:42 +00:00
parent b9d14b44d5
commit 2ddca09981
8 changed files with 88 additions and 55 deletions

View File

@@ -64,7 +64,8 @@ class AndroidBuild extends JavaBuild {
manifest = new Manifest(sketch);
// grab code from current editing window (GUI only)
sketch.prepareBuild(null);
// prepareExport(null);
// build the preproc and get to work
AndroidPreprocessor preproc = new AndroidPreprocessor(sketch, getPackageName());
if (!preproc.parseSketchSize()) {

View File

@@ -510,6 +510,7 @@ public class AndroidEditor extends JavaEditor implements DeviceListener {
* Build the sketch and run it inside an emulator with the debugger.
*/
public void handleRunEmulator() {
prepareRun();
AVD.ensureEclairAVD(sdk);
try {
runSketchOnDevice(Environment.getInstance().getEmulator(), "debug");