System.out.println("double click");
	public void mousePressed(MouseEvent e) {		int x = e.getX();		int newTool = getToolFromCoord(x);		if (newTool == -1) return;				System.out.println("new tools is "+newTool);		boolean doubleClick = newTool==current && (System.currentTimeMillis()-mouseDownTime)<=500; 		mouseDownTime = System.currentTimeMillis();		if (!doubleClick) {			mpPrevious = current;			setTool(newTool);		} else {			System.out.println("double click");			ImagePlus imp = IJ.getInstance().getImagePlus();			switch (current) {				case FREEROI:					IJ.doCommand("Set Measurements...");					setTool(mpPrevious);					break;				case MAGNIFIER:					if (imp!=null) imp.getCanvas().unzoom();					break;				case POLYGON:					if (imp!=null) IJ.doCommand("Calibrate...");					setTool(mpPrevious);					break;				case LINE: case POLYLINE: case FREELINE:					IJ.doCommand("Line Width...");					break;				case CROSSHAIR:					IJ.doCommand("Crosshair...");					break;				case TEXT:					IJ.doCommand("Fonts...");					break;				case DROPPER:					IJ.doCommand("Color Picker...");					setTool(mpPrevious);					break;				default:			}		}	}