Implements the Clear command.
()
| 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() { |
no test coverage detected