Returns the ImageJ version and build number as a String, for example "1.46n05", or 1.46n99 if there is no build number.
()
| 1939 | /** Returns the ImageJ version and build number as a String, for |
| 1940 | example "1.46n05", or 1.46n99 if there is no build number. */ |
| 1941 | public static String getFullVersion() { |
| 1942 | String build = ImageJ.BUILD; |
| 1943 | if (build.length()==0) |
| 1944 | build = "99"; |
| 1945 | else if (build.length()==1) |
| 1946 | build = "0" + build; |
| 1947 | return ImageJ.VERSION+build; |
| 1948 | } |
| 1949 | |
| 1950 | /** Returns the path to the specified directory if <code>title</code> is |
| 1951 | "home" ("user.home"), "downloads", "startup", "imagej" (ImageJ directory), |