【问题标题】:how to start an exe via eclipse plugin.xml button如何通过 eclipse plugin.xml 按钮启动 exe
【发布时间】:2019-01-19 22:46:23
【问题描述】:

我们想在 eclipse "rcp" 中启动一个 windows "exe"...

Windows“exe”位于“eclipse.exe”相对路径的文件夹中。

现在我们想在我们的 Eclipse "rcp" 中的现有按钮旁边添加一个按钮...

因此,当单击此按钮时,我想调用位于“eclipse.exe”旁边的文件夹中的 Windows“exe”。

如何获取“eclipse.exe”的相对路径,以便进入我要运行的“exe”文件夹,将其命名为windows“exe”...

【问题讨论】:

    标签: eclipse eclipse-plugin eclipse-rcp eclipse-cdt


    【解决方案1】:

    使用Platform.getInstallLocation()获取安装位置(org.eclipse.core.runtime.Platform

    URL installURL = Platform.getInstallLocation().getURL();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-27
      • 2011-02-07
      • 1970-01-01
      • 2012-12-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多