blob: fc1b6a04bc34753f1bbc8c7d95e6ab957792885d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package toolsconfig;
import cppcheckplus.control.UIFrame;
import cppcheckplus.text.MyTextPanel1;
import java.awt.TextArea;
public abstract class ToolsConfig {
public static final int SUCCESS = 0; // 表示程序执行成功
public static final String SUCCESS_MESSAGE = "程序执行成功!";
public static final String ERROR_MESSAGE = "程序执行出错:";
public static final String ENTERWindows = "\r\n";
public MyTextPanel1 textPanel;
protected String path;
protected String params;
protected UIFrame uiFrame;
protected TextArea result;
public String name;
protected abstract void execute(String src);
public void init(String path, String params, UIFrame uiFrame) {
this.path = path;
this.params = params;
this.textPanel = new MyTextPanel1();
this.result = this.textPanel.getTextArea();
this.uiFrame = uiFrame;
}
public boolean checkInit() {
return path != null && params != null && uiFrame != null;
}
public void clear() {
this.result.setText("");
}
}
|