MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / duplicate

Method duplicate

ij/src/main/java/ij/text/TextPanel.java:731–742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

doCommandMethod · 0.95

Calls 7

cloneMethod · 0.95
getStringMethod · 0.95
showMethod · 0.95
getParentMethod · 0.80
getTitleMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected