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

Method selectAll

ij/src/main/java/ij/text/TextPanel.java:959–971  ·  view source on GitHub ↗

Selects all the lines in this TextPanel.

()

Source from the content-addressed store, hash-verified

957
958 /** Selects all the lines in this TextPanel. */
959 public void selectAll() {
960 if (selStart==0 && selEnd==iRowCount-1) {
961 resetSelection();
962 IJ.showStatus("");
963 return;
964 }
965 selStart = 0;
966 selEnd = iRowCount-1;
967 selOrigin = 0;
968 tc.repaint();
969 selLine=-1;
970 showLinePos();
971 }
972
973 /** Clears the selection, if any. */
974 public void resetSelection() {

Callers 14

doCommandMethod · 0.95
copyAllMethod · 0.95
cutSelectionMethod · 0.95
doClearMethod · 0.95
showTextMethod · 0.45
actionPerformedMethod · 0.45
keyPressedMethod · 0.45
focusGainedMethod · 0.45
showDialogMethod · 0.45
addNumericFieldMethod · 0.45
getNextTextMethod · 0.45
showDialogMethod · 0.45

Calls 4

resetSelectionMethod · 0.95
showStatusMethod · 0.95
showLinePosMethod · 0.95
repaintMethod · 0.45

Tested by

no test coverage detected