mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
adding mode, breaking things out of editor etc
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
Part of the Processing project - http://processing.org
|
||||
|
||||
Copyright (c) 2009-10 Ben Fry and Casey Reas
|
||||
Copyright (c) 2009-11 Ben Fry and Casey Reas
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
|
||||
@@ -72,23 +72,12 @@ public class AndroidEditor extends JavaEditor implements DeviceListener {
|
||||
// }
|
||||
|
||||
JCheckBoxMenuItem toggleItem;
|
||||
AndroidMode amode;
|
||||
|
||||
|
||||
public AndroidEditor(Base base, File folder) {
|
||||
super(base, folder);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Editor createEditor(Base base, String path, int[] location) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Android";
|
||||
protected AndroidEditor(Base base, String path, int[] location, Mode mode) {
|
||||
super(base, path, location, mode);
|
||||
amode = (AndroidMode) mode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||
|
||||
/*
|
||||
Part of the Processing project - http://processing.org
|
||||
|
||||
Copyright (c) 2011 Ben Fry and Casey Reas
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
package processing.mode.android;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import processing.app.*;
|
||||
import processing.mode.java.JavaMode;
|
||||
|
||||
|
||||
public class AndroidMode extends JavaMode {
|
||||
|
||||
public AndroidMode(Base base, File folder) {
|
||||
super(base, folder);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Editor createEditor(Base base, String path, int[] location) {
|
||||
return new AndroidEditor(base, path, location, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Android";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user