pasteaction.java
来自「<Apress.The.Definitive.Guide.to.SWT.a」· Java 代码 · 共 28 行
JAVA
28 行
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 + =
减小字号Ctrl + -
显示快捷键?