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

Method getSelectionEnd

ij/src/main/java/ij/macro/Functions.java:7562–7574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7560 }
7561
7562 private Variable getSelectionEnd() {
7563 int selEnd = -1;
7564 ResultsTable rt = getResultsTable(getTitleArg());
7565 String title = rt.getTitle();
7566 Frame f = WindowManager.getFrame(title);
7567 if (f!=null && (f instanceof TextWindow)){
7568 TextWindow tWin = (TextWindow)f;
7569 selEnd = tWin.getTextPanel().getSelectionEnd();
7570 return new Variable(selEnd);
7571 }
7572 interp.error("\""+title+"\" table not found");
7573 return new Variable(selEnd);
7574 }
7575
7576 private Variable setTableValue() {
7577 ResultsTable rt = getRT(null);

Callers 4

doTableMethod · 0.95
edPasteMethod · 0.45
showTextMethod · 0.45
getMacroCodeMethod · 0.45

Calls 6

getResultsTableMethod · 0.95
getTitleArgMethod · 0.95
getTitleMethod · 0.95
getFrameMethod · 0.95
getTextPanelMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected