我如何“导出”这个Eclipse插件的来源? [英] How do I "export" this Eclipse plugin from sources?

查看:132
本文介绍了我如何“导出”这个Eclipse插件的来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用这个Eclipse插件:

I'd like to use this Eclipse plugin:

https://marketplace.eclipse.org/content/opencl-development-tool#group-details

使用我的Eclipse 2019-09。但是-版本不兼容,或者有人告诉我。有人建议我可以使用插件源来将自己导出为可部署的以便安装它。

with my Eclipse 2019-09. But - there's a version incompatibility, or so I'm told. It's been suggested to me that I might be able to use the plugin sources to "export it yourself as a deployable in order to install it".

但是我还不清楚我该怎么做。我不擅长构建Java构件,也不擅长Eclipse插件的开发和部署。在上面的链接中,有几个存储库,其中大多数只是两个或三个文件,其中一个是 pom.xml 。只有一个似乎是适当的回购协议(这一个))

But it's not at all clear to me how I'm supposed to do that. I'm not fluent with building Java artifacts nor with Eclipse plugin development and deployment. At the link above, there are several repositores, and most of them are only two or three files, one of them being pom.xml. Only one seems like a proper repo (this one).

如何处理这些存储库,以及如何制作一个可以使用它们安装在Eclipse中的插件?

What do I do with these repos and how can I make a plugin I can install in Eclipse, using them?

推荐答案

随着时间的推移,它似乎变得越来越简单-一旦您将工作区中的插件进行了干净的编译,就会有一个向导提供执行此操作的选项 。为您的Eclipse版本安装插件开发环境。它应该位于您的可用软件站点列表中的更新站点中(即首选项页面)。然后,按照内置帮助中的导出并安装到正在运行的主机任务中的步骤。该任务的前三句话涉及从工作区中的源项目调试插件的正常过程。

Looks like it's become simpler over time--there's a wizard with options for doing this once you've got the plug-in in your workspace compiling cleanly. Install the Plug-in Development Environment for your version of Eclipse. It should be in an update site already in your list of Available Software Sites (that's a preference page). Then, follow the steps of the Export and Install into the Running Host task in the built-in Help. The first 3 sentences of that task refer to the normal process of debugging plug-ins from source projects in the workspace. The rest of it is a guide to exactly what needs to be done here.

以下是该文档2020-03版本的链接:
https://help.eclipse。 org / 2020-03 / topic / org.eclipse.pde.doc.user / tasks / ui_export_install_into_host.htm?cp = 4_2_4_0

Here's the link to the 2020-03 version of that documentation: https://help.eclipse.org/2020-03/topic/org.eclipse.pde.doc.user/tasks/ui_export_install_into_host.htm?cp=4_2_4_0

以及相关部分:


...有时需要在您的主机(当前正在运行的Eclipse实例)中测试代码。要在主机中测试代码,需要导出并安装到正在运行的Eclipse实例中。

...it is sometimes necessary for code to be tested in your host, your currently running Eclipse instance. To test code in the host, you need to export and install into the running Eclipse instance.

要导出插件和功能部件并将其安装到主机Eclipse中,请执行以下操作:

To export plug-ins and features and install them into the host Eclipse do the following:



  1. 在工作区中开发插件和功能

  2. 打开导出向导,要么打开插件导出向导文件> 导出... > 插件开发> 可部署的插件和片段,或打开功能导出向导文件> 导出... > 插件开发> 可部署功能

  3. 选择要导出和安装的插件或功能

  4. 在目标选项卡上选择最后一个选项安装到主机。存储库。然后选择一个目录以

  5. 命中完成创建存储库。导出操作将随后进行安装操作。

  6. 如果操作成功完成,将提示您重新启动。选择立即重新启动

  7. 我们的插件将在重新启动后安装并运行。您可以使用关于对话框上的安装详细信息按钮查看已安装的内容(可通过访问 Help > 关于Eclipse来获得)。 SDK

  1. Develop your plug-ins and features in the workspace
  2. Open the export wizard, either Open the plug-in export wizard File > Export... > Plug-in Development > Deployable plug-ins and fragments or Open the feature export wizard File > Export... > Plug-in Development > Deployable features
  3. Select your plug-ins or features to export and install
  4. Select the last option on the Destination tab Install into host. Repository. Then choose a directory to create the repository in
  5. Hit Finish. The export operation will run followed by the installation operation.
  6. If the operations completed successfully, you will be prompted to restart. Choose to restart now
  7. our plug-ins will be installed and running after the restart. You can see what has been installed using the Installation Details button on the About Dialog (available by going to Help > About Eclipse SDK)

这篇关于我如何“导出”这个Eclipse插件的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆