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

Method cut

ij/src/main/java/ij/plugin/frame/Editor.java:842–850  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840 }
841
842 void cut() {
843 if (copy()) {
844 int start = ta.getSelectionStart();
845 int end = ta.getSelectionEnd();
846 ta.replaceRange("", start-offset(start), end-offset(end-2>=start?end-2:start));
847 if (IJ.isMacOSX())
848 ta.setCaretPosition(start);
849 }
850 }
851
852 private void assignToRepeatCommand() {
853 String title = getTitle();

Callers 1

actionPerformedMethod · 0.95

Calls 5

copyMethod · 0.95
offsetMethod · 0.95
isMacOSXMethod · 0.95
getSelectionStartMethod · 0.45
getSelectionEndMethod · 0.45

Tested by

no test coverage detected