在Eclipse IDE中创建自定义项目模板 [英] Make Custom Project template in Eclipse IDE

查看:412
本文介绍了在Eclipse IDE中创建自定义项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Eclipse IDE很长一段时间。它是一个非常好的IDE用于Java / C / C ++(和其他语言与其THOUSANDS的插件)。每隔一段时间,我就需要创建一个Javax界面。要正常执行此操作,我将设置新的Java项目,然后添加我需要的。但是,如果我可以做一个模板项目来自动包含文件的代码,这不是很好。我该怎么做呢?它甚至可能吗Eclipse CDT可以创建一个新的项目类型。 Google ADT和Google App引擎也是如此。所以我想象这是可能的。但是如何?

解决方案

您必须编写实现 org.eclipse.ui的Eclipse插件。 newWizards 扩展点。您可以扩展现有的新Java项目向导,并提供自定义项目布局实现(请参阅 API )。


I have been using Eclipse IDE for a long time. Its a really great IDE for Java/C/C++ (and other languages with its THOUSANDS of plugins). Every once in a while, I get the need for creating a Javax interface. To do this normally, I would setup the new java project then add what I need. But, wouldn't it be nice if I could just make a template project to automatically include the code for the files. How would I go about doing this? It it even possible? The Eclipse CDT can make a new project type. So can the Google ADT and Google App engine. So I would imagine it is possible. But how?

解决方案

You must write your Eclipse plug-in that implements org.eclipse.ui.newWizards extension point. You can extend an existing "New Java Project" wizard, and provide your custom project layout implementation (see the API).

这篇关于在Eclipse IDE中创建自定义项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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