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

Method doClear

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

Implements the Clear command.

()

Source from the content-addressed store, hash-verified

881
882 /** Implements the Clear command. */
883 public void doClear() {
884 if (getLineCount()>0 && selStart!=-1 && selEnd!=-1)
885 clearSelection();
886 else if ("Results".equals(title))
887 IJ.doCommand("Clear Results");
888 else {
889 selectAll();
890 clearSelection();
891 }
892 }
893
894 /** Deletes the selected lines. */
895 public void clearSelection() {

Callers 1

doCommandMethod · 0.95

Calls 5

getLineCountMethod · 0.95
clearSelectionMethod · 0.95
doCommandMethod · 0.95
selectAllMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected