I'm trying to create a new Arduino sketch from a tool (which allows me access to an Editor instance). I've checkout the github repo but I notice the creation of a new sketch is handled by the Base class(https://github.com/arduino/Arduino/blob/89d6841ac06cef712bae3e4f5e14a999f925d3ea/app/src/processing/app/Editor.java#L491)
The problem is I can't access the base instance from the Tool and therefore can't easily create a new sketch.
Is there an elegant solution to this ? How can I easily tell Arduino to create a new sketch from a Tool.