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