Fixing default sketchbook path (Processing -> Arduino). Not setting the Windows window icon to the Processing icon (it stays as the Java icon instead).

This commit is contained in:
David A. Mellis 2009-07-14 22:24:20 +00:00
parent 20ebdc9d30
commit a0d608e946
3 changed files with 5 additions and 5 deletions

View File

@ -145,7 +145,7 @@ public class Editor extends JFrame implements RunnerListener {
super("Arduino");
this.base = ibase;
Base.setIcon(this);
//Base.setIcon(this);
// add listener to handle window close box hit event
addWindowListener(new WindowAdapter() {

View File

@ -92,7 +92,7 @@ public class Platform extends processing.app.Platform {
Class clazz = Class.forName("processing.app.BaseMacOS");
Method m = clazz.getMethod("getDocumentsFolder", new Class[] { });
String documentsPath = (String) m.invoke(null, new Object[] { });
sketchbookFolder = new File(documentsPath, "Processing");
sketchbookFolder = new File(documentsPath, "Arduino");
} catch (Exception e) {
sketchbookFolder = promptSketchbookLocation();
@ -181,4 +181,4 @@ public class Platform extends processing.app.Platform {
protected String getDocumentsFolder() throws FileNotFoundException {
return FileManager.findFolder(kUserDomain, kDocumentsFolderType);
}
}
}

View File

@ -184,7 +184,7 @@ public class Platform extends processing.app.Platform {
String appDataPath =
Registry.getStringValue(REGISTRY_ROOT_KEY.CURRENT_USER, keyPath, "AppData");
File dataFolder = new File(appDataPath, "Processing");
File dataFolder = new File(appDataPath, "Arduino");
return dataFolder;
}
@ -213,7 +213,7 @@ public class Platform extends processing.app.Platform {
String personalPath =
Registry.getStringValue(REGISTRY_ROOT_KEY.CURRENT_USER, keyPath, "Personal");
return new File(personalPath, "Processing");
return new File(personalPath, "Arduino");
}