Converts commands that have been renamed so macros using the old names continue to work.
(String command)
| 407 | /** Converts commands that have been renamed so |
| 408 | macros using the old names continue to work. */ |
| 409 | private static String convert(String command) { |
| 410 | if (commandTable==null) { |
| 411 | commandTable = new Hashtable(30); |
| 412 | commandTable.put("New...", "Image..."); |
| 413 | commandTable.put("Threshold", "Make Binary"); |
| 414 | commandTable.put("Display...", "Appearance..."); |
| 415 | commandTable.put("Start Animation", "Start Animation [\\]"); |
| 416 | commandTable.put("Convert Images to Stack", "Images to Stack"); |
| 417 | commandTable.put("Convert Stack to Images", "Stack to Images"); |
| 418 | commandTable.put("Convert Stack to RGB", "Stack to RGB"); |
| 419 | commandTable.put("Convert to Composite", "Make Composite"); |
| 420 | commandTable.put("RGB Split", "Split Channels"); |
| 421 | commandTable.put("RGB Merge...", "Merge Channels..."); |
| 422 | commandTable.put("Channels...", "Channels Tool..."); |
| 423 | commandTable.put("New... ", "Table..."); |
| 424 | commandTable.put("Arbitrarily...", "Rotate... "); |
| 425 | commandTable.put("Measurements...", "Results... "); |
| 426 | commandTable.put("List Commands...", "Find Commands..."); |
| 427 | commandTable.put("Capture Screen ", "Capture Screen"); |
| 428 | commandTable.put("Add to Manager ", "Add to Manager"); |
| 429 | commandTable.put("In", "In [+]"); |
| 430 | commandTable.put("Out", "Out [-]"); |
| 431 | commandTable.put("Enhance Contrast", "Enhance Contrast..."); |
| 432 | commandTable.put("XY Coodinates... ", "XY Coordinates... "); |
| 433 | commandTable.put("Statistics...", "Statistics"); |
| 434 | commandTable.put("Channels Tool... ", "Channels Tool..."); |
| 435 | commandTable.put("Profile Plot Options...", "Plots..."); |
| 436 | commandTable.put("AuPbSn 40 (56K)", "AuPbSn 40"); |
| 437 | commandTable.put("Bat Cochlea Volume (19K)", "Bat Cochlea Volume"); |
| 438 | commandTable.put("Bat Cochlea Renderings (449K)", "Bat Cochlea Renderings"); |
| 439 | commandTable.put("Blobs (25K)", "Blobs"); |
| 440 | commandTable.put("Boats (356K)", "Boats"); |
| 441 | commandTable.put("Cardio (768K, RGB DICOM)", "Cardio (RGB DICOM)"); |
| 442 | commandTable.put("Cell Colony (31K)", "Cell Colony"); |
| 443 | commandTable.put("Clown (14K)", "Clown"); |
| 444 | commandTable.put("Confocal Series (2.2MB)", "Confocal Series"); |
| 445 | commandTable.put("CT (420K, 16-bit DICOM)", "CT (16-bit DICOM)"); |
| 446 | commandTable.put("Dot Blot (7K)", "Dot Blot"); |
| 447 | commandTable.put("Embryos (42K)", "Embryos"); |
| 448 | commandTable.put("Fluorescent Cells (400K)", "Fluorescent Cells"); |
| 449 | commandTable.put("Fly Brain (1MB)", "Fly Brain"); |
| 450 | commandTable.put("Gel (105K)", "Gel"); |
| 451 | commandTable.put("HeLa Cells (1.3M, 48-bit RGB)", "HeLa Cells (48-bit RGB)"); |
| 452 | commandTable.put("Leaf (36K)", "Leaf"); |
| 453 | commandTable.put("Line Graph (21K)", "Line Graph"); |
| 454 | commandTable.put("Mitosis (26MB, 5D stack)", "Mitosis (5D stack)"); |
| 455 | commandTable.put("MRI Stack (528K)", "MRI Stack"); |
| 456 | commandTable.put("M51 Galaxy (177K, 16-bits)", "M51 Galaxy (16-bits)"); |
| 457 | commandTable.put("Neuron (1.6M, 5 channels)", "Neuron (5 channels)"); |
| 458 | commandTable.put("Nile Bend (1.9M)", "Nile Bend"); |
| 459 | commandTable.put("Organ of Corti (2.8M, 4D stack)", "Organ of Corti (4D stack)"); |
| 460 | commandTable.put("Particles (75K)", "Particles"); |
| 461 | commandTable.put("T1 Head (2.4M, 16-bits)", "T1 Head (16-bits)"); |
| 462 | commandTable.put("T1 Head Renderings (736K)", "T1 Head Renderings"); |
| 463 | commandTable.put("TEM Filter (112K)", "TEM Filter"); |
| 464 | commandTable.put("Tree Rings (48K)", "Tree Rings"); |
| 465 | } |
| 466 | String command2 = (String)commandTable.get(command); |