📄 pasteaction.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 paste the contents of the clipboard into the document
*/
public class PasteAction extends Action {
/**
* PasteAction constructor
*/
public PasteAction() {
super("&Paste@Ctrl+V", ImageDescriptor.createFromFile(PasteAction.class,
"/images/paste.gif"));
setToolTipText("Paste");
}
/**
* Runs the action
*/
public void run() {
PerlEditor.getApp().paste();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -