Eclipse插件:在工作区中执行和执行Java文件

时间:2018-01-10 09:37:17

标签: java eclipse eclipse-plugin

是否可以在工作区中搜索特定的* .java文件并从插件(视图)中执行它?

public class TestMessage {

public static void main(String[] args) {

    switch (args[0]) {
    case "1":
        System.out.println("The Argument 1 has been sent.");
        break;
    case "2":
        System.out.println("The Argument 2 has been sent.");
        break;
    case "3":
        System.out.println("The Argument 3 has been sent.");
        break;
    default:
        break;
    }

}

我们举个例子说,我有上面的代码,想要在视图中进行tirgger ....

0 个答案:

没有答案