📄 textchange.java
字号:
package com.swtSample.text;
/**
* This class contains a single change, used for Undo processing
*/
public class TextChange {
// The starting offset of the change
private int start;
// The length of the change
private int length;
// The replaced text
String replacedText;
/**
* Constructs a TextChange
*
* @param start the starting offset of the change
* @param length the length of the change
* @param replacedText the text that was replaced
*/
public TextChange(int start, int length, String replacedText) {
this.start = start;
this.length = length;
this.replacedText = replacedText;
}
/**
* Returns the start
*
* @return int
*/
public int getStart() {
return start;
}
/**
* Returns the length
*
* @return int
*/
public int getLength() {
return length;
}
/**
* Returns the replacedText
*
* @return String
*/
public String getReplacedText() {
return replacedText;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -