📄 undoaction.java
字号:
package examples.ch18.perledit.actions;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import examples.ch18.perledit.PerlEditor;
/**
* This action undoes the last action
*/
public class UndoAction extends Action {
/**
* UndoAction constructor
*/
public UndoAction() {
super("&Undo@Ctrl+Z", ImageDescriptor.createFromFile(UndoAction.class,
"/images/undo.gif"));
setToolTipText("Undo");
}
/**
* Runs the action
*/
public void run() {
PerlEditor.getApp().undo();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -