| 729 | } |
| 730 | |
| 731 | @AstroImageJ(reason = "Add check for AIJ windows", modified = true) |
| 732 | void duplicate() { |
| 733 | ResultsTable rt2 = getOrCreateResultsTable(); |
| 734 | if (rt2==null) |
| 735 | return; |
| 736 | rt2 = (ResultsTable)rt2.clone(); |
| 737 | String title2 = IJ.getString("Title:", ((TextWindow)(getParent())).getTitle()+"_2"); |
| 738 | if (!title2.equals("")) { |
| 739 | if (title2.equals("Measurements")) title2 = "Measurements in Measurements2"; |
| 740 | rt2.show(title2); |
| 741 | } |
| 742 | } |
| 743 | |
| 744 | private String getNewTitle(String oldTitle) { |
| 745 | if (oldTitle==null) |