(String arg)
| 22 | ArrayList list = new ArrayList(); |
| 23 | |
| 24 | public void run(String arg) { |
| 25 | show("java.version"); |
| 26 | show("java.vendor"); |
| 27 | if (IJ.isMacintosh()) show("mrj.version"); |
| 28 | show("os.name"); |
| 29 | show("os.version"); |
| 30 | show("os.arch"); |
| 31 | show("file.separator"); |
| 32 | show("path.separator"); |
| 33 | |
| 34 | String s = System.getProperty("line.separator"); |
| 35 | char ch1, ch2; |
| 36 | String str1, str2=""; |
| 37 | ch1 = s.charAt(0); |
| 38 | if (ch1=='\r') |
| 39 | str1 = "<cr>"; |
| 40 | else |
| 41 | str1 = "<lf>"; |
| 42 | if (s.length()==2) { |
| 43 | ch2 = s.charAt(1); |
| 44 | if (ch2=='\r') |
| 45 | str2 = "<cr>"; |
| 46 | else |
| 47 | str2 = "<lf>"; |
| 48 | } |
| 49 | list.add(" line.separator: " + str1 + str2); |
| 50 | |
| 51 | Applet applet = IJ.getApplet(); |
| 52 | if (applet!=null) { |
| 53 | list.add(""); |
| 54 | list.add(" code base: "+applet.getCodeBase()); |
| 55 | list.add(" document base: "+applet.getDocumentBase()); |
| 56 | list.add(" sample images dir: "+Prefs.getImagesURL()); |
| 57 | TextWindow tw = new TextWindow("Properties", "", list, 400, 400); |
| 58 | return; |
| 59 | } |
| 60 | list.add(""); |
| 61 | show("user.name"); |
| 62 | show("user.home"); |
| 63 | show("user.dir"); |
| 64 | show("user.country"); |
| 65 | show("file.encoding"); |
| 66 | show("java.home"); |
| 67 | show("java.compiler"); |
| 68 | show("java.class.path"); |
| 69 | show("java.ext.dirs"); |
| 70 | show("java.io.tmpdir"); |
| 71 | |
| 72 | list.add(""); |
| 73 | String userDir = System.getProperty("user.dir"); |
| 74 | String userHome = System.getProperty("user.home"); |
| 75 | String osName = System.getProperty("os.name"); |
| 76 | String path = Prefs.getCustomPropsPath(); |
| 77 | if (path!=null) |
| 78 | list.add(" *Custom properties*: "+path); |
| 79 | path = Prefs.getCustomPrefsPath(); |
| 80 | if (path!=null) |
| 81 | list.add(" *Custom preferences*: "+path); |
nothing calls this directly
no test coverage detected