MCPcopy Index your code
hub / github.com/processing/processing / WindowsPlatform

Class WindowsPlatform

app/src/processing/app/platform/WindowsPlatform.java:58–682  ·  view source on GitHub ↗

Platform-specific glue for Windows.

Source from the content-addressed store, hash-verified

56 * Platform-specific glue for Windows.
57 */
58public class WindowsPlatform extends DefaultPlatform {
59
60 static final String APP_NAME = "Processing";
61 static final String[] APP_EXTENSIONS = { ".pde", ".pyde" };
62 static final String REG_OPEN_COMMAND =
63 System.getProperty("user.dir").replace('/', '\\') +
64 "\\" + APP_NAME.toLowerCase() + ".exe \"%1\"";
65 static final String REG_DOC = APP_NAME + ".Document";
66
67
68 public void initBase(Base base) {
69 super.initBase(base);
70 checkAssociations();
71 //checkQuickTime();
72 checkPath();
73
74 /*
75 File f = new File(System.getProperty("user.dir"), "recycle-test.txt");
76 //File f = new File("C:\\recycle-test.txt");
77 System.out.println(f.getAbsolutePath());
78 java.io.PrintWriter writer = PApplet.createWriter(f);
79 writer.println("blah");
80 writer.flush();
81 writer.close();
82 try {
83 deleteFile(f);
84 } catch (IOException e) {
85 e.printStackTrace();
86 }
87 */
88
89 //findJDK();
90 /*
91 new Thread(new Runnable() {
92 public void run() {
93 try {
94 Thread.sleep(2000);
95 } catch (InterruptedException ie) { }
96 findJDK();
97 }
98 }).start();
99 */
100 }
101
102
103// HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion -> 1.6 (String)
104// HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion\1.6\JavaHome -> c:\jdk-1.6.0_05
105
106 /*
107 static public void findJDK() {
108 try {
109 String jcpo = System.getProperty("java.home");
110 String jv = System.getProperty("java.version");
111 System.out.println("home and version = " + jcpo + " and " + jv);
112
113 // the last parameter will be anything appearing on the right-hand
114 // side of regedit.
115 final String JDK_KEY = "SOFTWARE\\JavaSoft\\Java Development Kit";

Callers

nothing calls this directly

Calls 2

detectSystemDPIMethod · 0.95
replaceMethod · 0.45

Tested by

no test coverage detected