()
| 56 | } |
| 57 | |
| 58 | private void showInfo() { |
| 59 | String s = new String(""); |
| 60 | if (IJ.getInstance()!=null) |
| 61 | s += IJ.getInstance().getInfo()+"\n \n"; |
| 62 | s += "No images are open\n"; |
| 63 | Dimension screen = IJ.getScreenSize(); |
| 64 | s += "ImageJ home: "+IJ.getDir("imagej")+"\n"; |
| 65 | s += "Java home: "+System.getProperty("java.home")+"\n"; |
| 66 | s += "Java version: "+IJ.javaVersion()+"\n"; |
| 67 | s += "Screen size: "+screen.width+"x"+screen.height+"\n"; |
| 68 | s += "GUI scale: "+IJ.d2s(Prefs.getGuiScale(),2)+"\n"; |
| 69 | //s += "Active window: "+WindowManager.getActiveWindow()+"\n"; |
| 70 | String path = Prefs.getCustomPropsPath(); |
| 71 | if (path!=null) |
| 72 | s += "*Custom properties*: "+ path +"\n"; |
| 73 | path = Prefs.getCustomPrefsPath(); |
| 74 | if (path!=null) |
| 75 | s += "*Custom preferences*: "+ path +"\n"; |
| 76 | //if (IJ.isMacOSX()) { |
| 77 | // String time = " ("+ImageWindow.setMenuBarTime+"ms)"; |
| 78 | // s += "SetMenuBarCount: "+Menus.setMenuBarCount+time+"\n"; |
| 79 | //} |
| 80 | new TextWindow("Info", s, 600, 300); |
| 81 | } |
| 82 | |
| 83 | public String getImageInfo(ImagePlus imp) { |
| 84 | ImageProcessor ip = imp.getProcessor(); |
no test coverage detected