@jeremydouglass Hi Jeremy. Thanks for your mention!
Hi I am the author of Processing.R. When I get started with the development of the mode, I learnt a lot from processing.py. I think if you want to create a new mode, there are some things you should do:
- You need to write a mode first (like https://github.com/processing-r/Processing.R/blob/master/src/rprocessing/mode/RLangMode.java#L19)
- Then you need to change the code in Processing to test if the mode works. There are three places you need to update in https://github.com/processing/processing/blob/master/app/src/processing/app/Base.java
/** True if heavy debugging error/log messages are enabled */
// static public boolean DEBUG = false;
static public boolean DEBUG = true;
void buildCoreModes() {
/* Mode javaMode =
ModeContribution.load(this, Platform.getContentFile("modes/JavaMode"),
getDefaultModeIdentifier()).getMode();
*/
Mode javaMode =
ModeContribution.load(this, Platform.getContentFile("modes/PythonMode"),
getDefaultModeIdentifier()).getMode();
// PDE X calls getModeList() while it's loading, so coreModes must be set
coreModes = new Mode[] { javaMode };
}
String getDefaultModeIdentifier() {
// return "processing.mode.java.JavaMode";
return "jycessing.mode.PythonMode";
}
You need to update the modeidentifier and javaMode to let the Processing IDE set your mode as default. Then you could build and run it. You will see there is a Processing IDE instance which default mode is your custom mode.
This is just for devops purpose. If you want to release the mode, there are lots of things you need to care about. I do not think you need to worry about it before you finish the first version of your mode.