| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,8 +53,8 @@ public class Base { | |||
| 53 | 53 | // static private boolean RELEASE = false; | |
| 54 | 54 | ||
| 55 | 55 | /** 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; | ||
| 58 | 58 | ||
| 59 | 59 | static HashMap<Integer, String> platformNames = | |
| 60 | 60 | new HashMap<Integer, String>(); | |
@@ -168,7 +168,7 @@ static private void createAndShowGUI(String[] args) { | |||
| 168 | 168 | // because the platform has to be inited properly first. | |
| 169 | 169 | ||
| 170 | 170 | // Make sure a full JDK is installed | |
| 171 | - initRequirements(); | ||
| 171 | + //initRequirements(); | ||
| 172 | 172 | ||
| 173 | 173 | // Load the languages | |
| 174 | 174 | Language.init(); | |
@@ -249,6 +249,7 @@ static public void initPlatform() { | |||
| 249 | 249 | } | |
| 250 | 250 | ||
| 251 | 251 | ||
| 252 | + /* | ||
| 252 | 253 | public static void initRequirements() { | |
| 253 | 254 | try { | |
| 254 | 255 | Class.forName("com.sun.jdi.VirtualMachine"); //$NON-NLS-1$ | |
@@ -271,6 +272,13 @@ public static void initRequirements() { | |||
| 271 | 272 | "More information can be found on the Wiki.", cnfe); | |
| 272 | 273 | } | |
| 273 | 274 | } | |
| 275 | + */ | ||
| 276 | + | ||
| 277 | + | ||
| 278 | + private String getDefaultModeIdentifier() { | ||
| 279 | + return "processing.mode.java.pdex.ExperimentalMode"; | ||
| 280 | + //return "processing.mode.java.JavaMode"; | ||
| 281 | + } | ||
| 274 | 282 | ||
| 275 | 283 | ||
| 276 | 284 | private void buildCoreModes() { | |
@@ -281,13 +289,15 @@ private void buildCoreModes() { | |||
| 281 | 289 | // PDE X calls getModeList() while it's loading, so coreModes must be set | |
| 282 | 290 | coreModes = new Mode[] { javaMode }; | |
| 283 | 291 | ||
| 292 | + /* | ||
| 284 | 293 | Mode pdexMode = | |
| 285 | 294 | ModeContribution.load(this, getContentFile("modes/ExperimentalMode"), //$NON-NLS-1$ | |
| 286 | 295 | "processing.mode.experimental.ExperimentalMode").getMode(); //$NON-NLS-1$ | |
| 287 | 296 | ||
| 288 | 297 | // Safe to remove the old Java mode here? | |
| 289 | 298 | //coreModes = new Mode[] { pdexMode }; | |
| 290 | 299 | coreModes = new Mode[] { pdexMode, javaMode }; | |
| 300 | + */ | ||
| 291 | 301 | } | |
| 292 | 302 | ||
| 293 | 303 | ||
@@ -620,11 +630,6 @@ private void saveModeSettings(final File sketchProps, final Mode mode) { | |||
| 620 | 630 | } | |
| 621 | 631 | ||
| 622 | 632 | ||
| 623 | - private String getDefaultModeIdentifier() { | ||
| 624 | - return "processing.mode.java.JavaMode"; | ||
| 625 | - } | ||
| 626 | - | ||
| 627 | - | ||
| 628 | 633 | public Mode getDefaultMode() { | |
| 629 | 634 | return coreModes[0]; | |
| 630 | 635 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,7 @@ private ModeContribution(Base base, File folder, | |||
| 77 | 77 | className = initLoader(className); | |
| 78 | 78 | if (className != null) { | |
| 79 | 79 | Class<?> modeClass = loader.loadClass(className); | |
| 80 | + Base.log("Got mode class " + modeClass); | ||
| 80 | 81 | Constructor con = modeClass.getConstructor(Base.class, File.class); | |
| 81 | 82 | mode = (Mode) con.newInstance(base, folder); | |
| 82 | 83 | mode.setClassLoader(loader); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -257,7 +257,7 @@ | |||
| 257 | 257 | <subant buildpath="../java/libraries/pdf" target="clean"/> | |
| 258 | 258 | <subant buildpath="../java/libraries/serial" target="clean"/> | |
| 259 | 259 | <subant buildpath="shared/tools/MovieMaker" target="clean"/> | |
| 260 | - <subant buildpath="../pdex" target="clean"/> | ||
| 260 | + <subant buildpath="../java" target="clean"/> | ||
| 261 | 261 | ||
| 262 | 262 | <!-- make sure this isn't around from an old build 140730 --> | |
| 263 | 263 | <delete dir="../java/examples" /> | |
@@ -271,7 +271,7 @@ | |||
| 271 | 271 | <subant buildpath="../java/libraries/pdf" target="build"/> | |
| 272 | 272 | <subant buildpath="../java/libraries/serial" target="build"/> | |
| 273 | 273 | <subant buildpath="shared/tools/MovieMaker" target="build"/> | |
| 274 | - <subant buildpath="../pdex" target="package"/> | ||
| 274 | + <subant buildpath="../java" target="build"/> | ||
| 275 | 275 | </target> | |
| 276 | 276 | ||
| 277 | 277 | ||
@@ -317,9 +317,11 @@ | |||
| 317 | 317 | </unzip> | |
| 318 | 318 | ||
| 319 | 319 | <!-- copy PDE X mode folder--> | |
| 320 | + <!-- | ||
| 320 | 321 | <copy todir="${target.path}/modes/"> | |
| 321 | 322 | <fileset dir="../pdex/dist" /> | |
| 322 | 323 | </copy> | |
| 324 | + --> | ||
| 323 | 325 | ||
| 324 | 326 | </target> | |
| 325 | 327 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ static public void main(String[] args) { | |||
| 73 | 73 | // init the platform so that prefs and other native code is ready to go | |
| 74 | 74 | Base.initPlatform(); | |
| 75 | 75 | // make sure a full JDK is installed | |
| 76 | - Base.initRequirements(); | ||
| 76 | + //Base.initRequirements(); | ||
| 77 | 77 | ||
| 78 | 78 | // launch command line handler | |
| 79 | 79 | new Commander(args); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,8 +62,8 @@ public String getTitle() { | |||
| 62 | 62 | ||
| 63 | 63 | // public Editor createEditor(Base ibase, String path, int[] location) { | |
| 64 | 64 | // } | |
| 65 | - | ||
| 66 | - | ||
| 65 | + | ||
| 66 | + | ||
| 67 | 67 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | |
| 68 | 68 | ||
| 69 | 69 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments