public void loadArduBlockFile(File savedFile) throws IOException { if (savedFile != null) { String saveFilePath = savedFile.getAbsolutePath(); workspaceController.resetWorkspace(); workspaceController.loadProjectFromPath(saveFilePath); didLoad(); } }