()
| 554 | } |
| 555 | |
| 556 | private String getNewTitle() { |
| 557 | if (titleChanged) |
| 558 | return null; |
| 559 | String title = defaultTitle; |
| 560 | if (imp.getStackSize()>1 && !duplicateStack && !legacyMacro && (stackCheckbox==null||!stackCheckbox.getState())) { |
| 561 | ImageStack stack = imp.getStack(); |
| 562 | String label = stack.getShortSliceLabel(imp.getCurrentSlice()); |
| 563 | if (label!=null && label.length()==0) |
| 564 | label = null; |
| 565 | if (label!=null) { |
| 566 | title = label; |
| 567 | sliceLabel = label; |
| 568 | } |
| 569 | } |
| 570 | return title; |
| 571 | } |
| 572 | |
| 573 | boolean duplicateHyperstack(ImagePlus imp, String newTitle) { |
| 574 | newTitle = showHSDialog(imp, newTitle); |
no test coverage detected