bringing android mode up to date, tweaking java mode

This commit is contained in:
benfry
2011-01-22 18:40:19 +00:00
parent cefdea6522
commit bb59356978
12 changed files with 228 additions and 77 deletions

View File

@@ -176,7 +176,7 @@ public class JavaMode extends Mode {
* @throws SketchException
*/
public void handleRun(Sketch sketch, RunnerListener listener) throws SketchException {
Build build = new Build(sketch);
JavaBuild build = new JavaBuild(sketch);
String appletClassName = build.build();
if (appletClassName != null) {
runtime = new Runner(build, listener);
@@ -186,7 +186,7 @@ public class JavaMode extends Mode {
public void handlePresent(Sketch sketch, RunnerListener listener) throws SketchException {
Build build = new Build(sketch);
JavaBuild build = new JavaBuild(sketch);
String appletClassName = build.build();
if (appletClassName != null) {
runtime = new Runner(build, listener);
@@ -204,13 +204,13 @@ public class JavaMode extends Mode {
public boolean handleExportApplet(Sketch sketch) throws SketchException, IOException {
Build build = new Build(sketch);
JavaBuild build = new JavaBuild(sketch);
return build.exportApplet();
}
public boolean handleExportApplication(Sketch sketch) throws SketchException, IOException {
Build build = new Build(sketch);
JavaBuild build = new JavaBuild(sketch);
return build.exportApplication();
}
}