public void init(Editor editor) {
if (ArduBlockTool.editor == null )
{
ArduBlockTool.editor = editor;
ArduBlockTool.openblocksFrame = new ArduBlockToolFrame();
ArduBlockTool.openblocksFrame.addListener(this);
Context context = Context.getContext();
String arduinoVersion = this.getArduinoVersion();
context.setInArduino(true);
context.setArduinoVersionString(arduinoVersion);