void showAll(int mode) {
		ImagePlus imp = WindowManager.getCurrentImage();
		if (imp==null)
			{error("There are no images open."); return;}
		ImageCanvas ic = imp.getCanvas();
		if (ic==null) return;
		boolean showAll = mode==SHOW_ALL;
		if (mode==LABELS) {
			showAll = true;
			if (record())
				Recorder.record("roiManager", "Show All with labels");
		} else if (mode==NO_LABELS) {
			showAll = true;
			if (record())
				Recorder.record("roiManager", "Show All without labels");
		}
		if (showAll) imp.killRoi();
		ic.setShowAllROIs(showAll);
		if (record())
			Recorder.record("roiManager", showAll?"Show All":"Show None");
		imp.draw();
	}