如何执行自定义 Eclipse 编辑器
我使用 Eclipse-GMF 创建了一个图形编辑器。现在我可以创建图表文件了。我想做的是通过单击绿色按钮来执行图表文件。
所以基本上我想为我创建的插件创建一个自定义运行配置。
我希望自定义运行配置来启动 Eclipse-RCP 应用程序来读取运行的图表。但是,当我在“作为产品运行”或“作为应用程序运行”中选择 RCP 应用程序时,它会正常打开大约 20 秒,然后崩溃......
所以我的问题是如何正确配置它?
I have created a graphical editor using Eclipse-GMF. So now I can create diagram files. What I would like to do is execute the diagram files by clicking the green button.
So basically I would like to create a custom run configuration for a plugin that I have created.
I would like the custom run configuration to launch an Eclipse-RCP application that will read the runned diagram. But when i choose my RCP application in the Run as product or Run as application it opens normally for about 20secs then it crashes...
So my question is how do i configure this correctly??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该扩展 org.eclipse.debug.launch* 扩展点以拥有自己的启动配置、启动器、启动选项卡等。
You should extend the org.eclipse.debug.launch* extension points to have your own launch configuration, launchers, launch tabs, etc.
我相信您提到的这些崩溃与此错误有关。 崩溃日志与您在评论中发布的日志相同。据我所知,当 Mylyn 安装在目标平台上时,问题出在 Windows 7 上的 Eclipse Helios 上。该错误报告指出该问题已在 3.7 M7 中得到解决。请参阅此评论了解如何防止插件使工作台崩溃.
希望这有帮助:)。
I believe these crashes that you mention are related to this bug. The crash log is identical to the one you posted in your comment. From what I can see, the issue was with Eclipse Helios on Windows 7 when Mylyn is installed on the target platform. The bug report states that it's solved in 3.7 M7. See this comment on how to prevent your plugin from crashing the workbench.
Hope that this helps :).