如何通过 eclipse plugin.xml 按钮启动 exe
how to start an exe via eclipse plugin.xml button
我们想在 eclipse "rcp" 中启动一个 windows "exe"...
Windows "exe" 位于 "eclipse.exe".
相对路径的文件夹中
现在我们想在 eclipse 中的现有按钮旁边添加一个按钮 "rcp"...
因此,当单击此按钮时,我想调用位于 "eclipse.exe".
旁边的文件夹中的 windows "exe"
如何获取 "eclipse.exe" 的相对路径,以便进入我想要 运行 的 "exe" 文件夹,将其命名为 windows "exe"...
使用Platform.getInstallLocation()
获取安装位置(org.eclipse.core.runtime.Platform
)
URL installURL = Platform.getInstallLocation().getURL();
我们想在 eclipse "rcp" 中启动一个 windows "exe"...
Windows "exe" 位于 "eclipse.exe".
相对路径的文件夹中现在我们想在 eclipse 中的现有按钮旁边添加一个按钮 "rcp"...
因此,当单击此按钮时,我想调用位于 "eclipse.exe".
旁边的文件夹中的 windows "exe"如何获取 "eclipse.exe" 的相对路径,以便进入我想要 运行 的 "exe" 文件夹,将其命名为 windows "exe"...
使用Platform.getInstallLocation()
获取安装位置(org.eclipse.core.runtime.Platform
)
URL installURL = Platform.getInstallLocation().getURL();