Eclipse 插件示例无法运行

发布于 2024-12-06 19:13:58 字数 511 浏览 1 评论 0原文

在我的 Mac 计算机上,我按照本页上的教程来运行 Taipan 示例,但还是失败了很多次。

切换到 Plug-in Development 透视图并打开 org.eclipse.gmf.examples.taipan 项目中的 models 文件夹。探索此处找到的每个模型及其元素属性。您会注意到,有生成的 Taipan 示例的完整版本和 RCP 版本可供探索。

当我尝试作为“Eclipse 应用程序”运行时,它会启动一个新的 Eclipse 应用程序,但示例对话框中没有“Taipan 图”,如下所示:

创建一个空项目并在“新建”对话框的“示例”文件夹中找到一个新的“TaiPan 图”

可能的原因是什么?有人帮我解决一下吗?

On my Mac computer, I follow the tutorial on this page to get the Taipan example run, but still failed so many times.

Switch to the Plug-in Development perspective and open the models folder within the org.eclipse.gmf.examples.taipan project. Explore each of the models found hereand their element properties. You'll notice that there are full and RCP versions of the generated Taipan examples to explore.

When I try to run as "Eclipse application", it launches a new eclipse app but the dialog box Examples does not have the 'Taipan Diagram' as it says:

create an empty project and a new 'TaiPan Diagram' found in the Examples folder of the New dialog

What are the possible causes? Someone helps me to solve it out?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

裂开嘴轻声笑有多痛 2024-12-13 19:13:58

我假设您的插件工作正常并且没有显示编译错误?

那么最可能的原因是您没有选择在启动对话框中激活您的插件。
我回答了一个类似的问题:

我的猜测是您刚刚创建了该插件,但并未在当前的 Eclipse 实例中运行它。可以通过打开“插件注册表”视图来验证这一点。这将显示所有插件的列表,查看您创建的插件是否在该列表中。

如果单击 Eclipse 中的运行按钮,您将打开一个运行配置对话框。在其中一个选项卡中,您可以选择可用的插件。确保您的插件被选中。这将启动一个新的 Eclipse 实例来运行您的插件。

要使您的插件成为普通 Eclipse 安装的一部分,您需要将其导出到 jar 并将该 jar 复制到 dropins 目录。

I'm assuming that your plugin is working fine and doesnt show compilation errors?

Then the most likely reason is that you havent chosen your plugin to be active in your launch dialog.
I answered a similar question with this:

My guess is that you have just created the plugin, but aren't running it in your current Eclipse instance. That can be verified by opening the view "Plugin registry". That will show a list of all plugins, see if the plugin you have created is in that list.

If you click on the run button in Eclipse you will open a run configuration dialog. In one of the tabs, you get to choose what plugins should be available. Make sure your plug-in is selected. This will start up a new Eclipse instance that will run your plugin.

To make your plugin be a part of your ordinary Eclipse installation, you will need to export it to a jar and copy that jar to the dropins catalog.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文