Skip to content

Commit c04074c

Browse files
committed
actually running, with lots of errors
1 parent 74b44de commit c04074c

File tree

6 files changed

+165
-145
lines changed

6 files changed

+165
-145
lines changed

app/src/processing/app/Base.java

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public class Base {
5353
// static private boolean RELEASE = false;
5454

5555
/** True if heavy debugging error/log messages are enabled */
56-
static public boolean DEBUG = false;
57-
// static public boolean DEBUG = true;
56+
// static public boolean DEBUG = false;
57+
static public boolean DEBUG = true;
5858

5959
static HashMap<Integer, String> platformNames =
6060
new HashMap<Integer, String>();
@@ -168,7 +168,7 @@ static private void createAndShowGUI(String[] args) {
168168
// because the platform has to be inited properly first.
169169

170170
// Make sure a full JDK is installed
171-
initRequirements();
171+
//initRequirements();
172172

173173
// Load the languages
174174
Language.init();
@@ -249,6 +249,7 @@ static public void initPlatform() {
249249
}
250250

251251

252+
/*
252253
public static void initRequirements() {
253254
try {
254255
Class.forName("com.sun.jdi.VirtualMachine"); //$NON-NLS-1$
@@ -271,6 +272,13 @@ public static void initRequirements() {
271272
"More information can be found on the Wiki.", cnfe);
272273
}
273274
}
275+
*/
276+
277+
278+
private String getDefaultModeIdentifier() {
279+
return "processing.mode.java.pdex.ExperimentalMode";
280+
//return "processing.mode.java.JavaMode";
281+
}
274282

275283

276284
private void buildCoreModes() {
@@ -281,13 +289,15 @@ private void buildCoreModes() {
281289
// PDE X calls getModeList() while it's loading, so coreModes must be set
282290
coreModes = new Mode[] { javaMode };
283291

292+
/*
284293
Mode pdexMode =
285294
ModeContribution.load(this, getContentFile("modes/ExperimentalMode"), //$NON-NLS-1$
286295
"processing.mode.experimental.ExperimentalMode").getMode(); //$NON-NLS-1$
287296
288297
// Safe to remove the old Java mode here?
289298
//coreModes = new Mode[] { pdexMode };
290299
coreModes = new Mode[] { pdexMode, javaMode };
300+
*/
291301
}
292302

293303

@@ -620,11 +630,6 @@ private void saveModeSettings(final File sketchProps, final Mode mode) {
620630
}
621631

622632

623-
private String getDefaultModeIdentifier() {
624-
return "processing.mode.java.JavaMode";
625-
}
626-
627-
628633
public Mode getDefaultMode() {
629634
return coreModes[0];
630635
}

app/src/processing/app/contrib/ModeContribution.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ private ModeContribution(Base base, File folder,
7777
className = initLoader(className);
7878
if (className != null) {
7979
Class<?> modeClass = loader.loadClass(className);
80+
Base.log("Got mode class " + modeClass);
8081
Constructor con = modeClass.getConstructor(Base.class, File.class);
8182
mode = (Mode) con.newInstance(base, folder);
8283
mode.setClassLoader(loader);

build/build.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<subant buildpath="../java/libraries/pdf" target="clean"/>
258258
<subant buildpath="../java/libraries/serial" target="clean"/>
259259
<subant buildpath="shared/tools/MovieMaker" target="clean"/>
260-
<subant buildpath="../pdex" target="clean"/>
260+
<subant buildpath="../java" target="clean"/>
261261

262262
<!-- make sure this isn't around from an old build 140730 -->
263263
<delete dir="../java/examples" />
@@ -271,7 +271,7 @@
271271
<subant buildpath="../java/libraries/pdf" target="build"/>
272272
<subant buildpath="../java/libraries/serial" target="build"/>
273273
<subant buildpath="shared/tools/MovieMaker" target="build"/>
274-
<subant buildpath="../pdex" target="package"/>
274+
<subant buildpath="../java" target="build"/>
275275
</target>
276276

277277

@@ -317,9 +317,11 @@
317317
</unzip>
318318

319319
<!-- copy PDE X mode folder-->
320+
<!--
320321
<copy todir="${target.path}/modes/">
321322
<fileset dir="../pdex/dist" />
322323
</copy>
324+
-->
323325

324326
</target>
325327

java/src/processing/mode/java/Commander.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static public void main(String[] args) {
7373
// init the platform so that prefs and other native code is ready to go
7474
Base.initPlatform();
7575
// make sure a full JDK is installed
76-
Base.initRequirements();
76+
//Base.initRequirements();
7777

7878
// launch command line handler
7979
new Commander(args);

java/src/processing/mode/java/JavaMode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public String getTitle() {
6262

6363
// public Editor createEditor(Base ibase, String path, int[] location) {
6464
// }
65-
66-
65+
66+
6767
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6868

6969

0 commit comments

Comments
 (0)