📄 operation.java
字号:
package com.ismyway.anyview.others;
import com.ismyway.anyview.win.FileExplorer;
public class Operation {
public static final byte INIT_OP = 1;
public static final byte OPEN_OP = 2;
public static final byte DELETE_OP = 3;
public final byte operationCode;
private FileExplorer fileExplorer;
public Operation(FileExplorer fe, byte operationCode) {
this.fileExplorer = fe;
this.operationCode = operationCode;
}
public void execute() {
if (this.fileExplorer != null) {
switch (operationCode) {
case INIT_OP:
this.fileExplorer.openRootDir();
break;
case OPEN_OP:
this.fileExplorer.openSelected((byte)0);
break;
case DELETE_OP:
this.fileExplorer.deleteCurrent();
break;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -