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

Method getNewTitle

ij/src/main/java/ij/plugin/Duplicator.java:556–571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 3

showDialogMethod · 0.95
textValueChangedMethod · 0.95
itemStateChangedMethod · 0.95

Calls 6

getShortSliceLabelMethod · 0.95
getCurrentSliceMethod · 0.80
lengthMethod · 0.65
getStackSizeMethod · 0.45
getStateMethod · 0.45
getStackMethod · 0.45

Tested by

no test coverage detected