java - Eclipse插件开发: Deliver tools (e. g.编译器)

标签 java eclipse eclipse-plugin

一旦找到更好的标题,我就会更改该帖子的标题..

我将要编写的是一个 Eclipse 插件,它允许人们为特定的微 Controller 创建一个新项目(哪个微 Controller 并不重要)。

我希望这个插件能够提供一些工具,例如我想配置构建器,使所有 C 文件都使用 SDCC 进行编译。 。

关于这个项目我想知道

  • 我如何提供例如我的插件中包含 SDCC 编译器吗?
  • 有什么好的教程可以演示如何做到这一点吗?
  • 是否有我应该在插件开发中查看的推荐库?
  • 是否有任何教程展示如何配置插件,以便有可用的标准运行配置(例如,项目是自动构建的,并且可以通过单击运行程序按钮来运行)

我是 Eclipse 插件开发的新手,因此欢迎提供与此相关的一般教程的进一步链接。

我已经找到www.eclipsepluginsite.com到目前为止这是一个很大的帮助。

感谢您提供任何信息。

最佳答案

How can I provide e.g. the SDCC compiler included inside my plugin?

你不知道。您要求用户向您提供 SDCC 编译器的链接。

Are there recommended libraries I should take a look at for plugin development?

已经加德pointed you前往 Vogella 教程。我用过这本书,Eclipse Plug-Ins ,学习Eclipse插件开发。

Are there any tutorials that show how to configure a plugin such that there is a standard running configuration available (such that e.g. the project is built automatically and can be run by clicking the runner button)

您可以查看 Eclipse 类 ImportOperation。它可以在 org.eclipse.ui.ide.source jar 中找到。源 jar 包含在 Eclipse RCP 中。该类执行将对象从本地文件系统复制到 Eclipse 工作区的实际工作。

我尝试附上源代码,但答案只能是 30,000 个字符或更少。

关于java - Eclipse插件开发: Deliver tools (e. g.编译器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17675250/

相关文章:

Java 格式化两位小数

java - 面向方面的编程 - 什么是 'cflow' ?

java - 在没有 eclipse 的情况下运行 eclipse 插件

java - 获取 Java 列表列表中的值

android - 使用 GPS 跟踪手机号码

eclipse - 如何从 Eclipse 部署 Scala 项目?

java - 无法通过 Eclipse 部署到 Elastic Beanstalk

java - Eclipse 中位置信息指定不正确

spring - 通过 Eclipse 插件工具将 Web 应用程序添加到 WebSphere Liberty Profile

java - 在 Java 的输入数组中,如何找到相等值对的数量?