Eclipse 重新加载启动配置文件
我正在文件夹 WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches/ 中编辑启动配置。有什么方法可以强制 Eclipse 重新加载这些文件中的更改吗?我需要这个,因为我需要修复以前版本的 Eclipse 中损坏的配置。我写了一个插件可以做到这一点,但之后我需要重新启动 eclipse。有谁知道如何在不重新启动 eclipse 的情况下做到这一点?谢谢
I am editing the launch configuration in the folder WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches/. Is there any way to force the eclipse reload the changes in these files? I need this because I need fix the broken configurations from previous version of eclipse. I wrote a plugin which can do this, but I need to restart eclipse after that. Does anyone know how to this without restarting eclipse? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我宁愿在我的项目中导出那些“启动配置”。
(请参阅“如何跨工作区保存 Eclipse 启动配置文件?< /a>”:从启动配置的“通用”选项卡中选择工作区中的共享文件位置。)
我通常 将它们保留在
<项目>/.settings
。然后,如果您从外部编辑器进行修改,您可以简单地刷新您的项目,并且它应该会拾取所述配置文件中的演变。
无需重新启动:
您无需再次阅读工作区,其中包含有关您的项目的元数据。
您只需要刷新您的项目,其中包含数据,...现在还有那些配置文件。
I would rather export those "launches configurations" within my project.
(See "How do I save Eclipse launch profiles across workspaces?": choose a shared file location inside your workspace from the "Common" tab of the launch configurations.)
I usually keep them in
<project>/.settings
.Then, if you do modification from an external editor, you can simply refresh your project, and it should pick up the evolutions in said configuration files.
No restart needed:
You don't need to read again your workspace, which contains metadata about your project.
You only need to refresh your project, which contains data, ... and now also those configuration files.