public class KillRingUtil
extends java.lang.Object
kill ring
-aware processing.Modifier and Type | Method and Description |
---|---|
static void |
copyToKillRing(Editor editor,
int startOffset,
int endOffset,
boolean cut)
Copies target region from the given offset to the kill ring, i.e.
|
static void |
cut(Editor editor,
int start,
int end)
Cuts target region from the given editor and puts it to the kill ring.
|
public static void cut(Editor editor, int start, int end)
editor
- target editorstart
- start offset of the target text region within the given editor (inclusive)end
- end offset of the target text region within the given editor (exclusive)public static void copyToKillRing(Editor editor, int startOffset, int endOffset, boolean cut)
editor
- target editorstartOffset
- start offset of the target region within the given editorendOffset
- end offset of the target region within the given editorcut
- flag that identifies if target text region will be cut from the given editor