void mouseDoubleClick(int x, int y, int modifiers, int nearestAtomIndex) {
		// viewer.setStatusUserAction("mouseDoubleClick: " + modifiers);
		setMouseMode();
		switch (modifiers & BUTTON_MODIFIER_MASK) {
		case LEFT:
			if (measurementEnabled) { // XIE
				if (measurementMode) {
					addToMeasurement(nearestAtomIndex, true);
					toggleMeasurement();
				}
				else if (!drawMode && measuresEnabled) {
					enterMeasurementMode();
					addToMeasurement(nearestAtomIndex, true);
				}
			}
			break;
		case ALT_LEFT:
		case MIDDLE:
		case SHIFT_LEFT:
			if (nearestAtomIndex < 0)
				viewer.script("reset");
			break;
		}
	}