Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT new project wizard
CDT new project wizard [message #510330] Wed, 27 January 2010 09:59 Go to next message
kobi  is currently offline kobi Friend
Messages: 4
Registered: January 2010
Junior Member
Hi,

I am looking for a CDT template which create new project wizard with the following:

1. Add an option for new My Project wizard, which will do the same as new C project wizard.
2. Add my custom files and folders to the project.
3. Customize the make/build commands.
4. while building, display the output from a file in eclipse windows.

Do you have any reference/template which does the same?

Regards,
Kobi
Re: CDT new project wizard [message #510389 is a reply to message #510330] Wed, 27 January 2010 12:31 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Here is an explanation how to do this.
http://help.eclipse.org/helpgalileo/index.jsp?topic=/org.ecl ipse.cdt.doc.isv/guide/projectTemplateEngine/Howtoregisterte mplates.html


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: CDT new project wizard [message #510649 is a reply to message #510389] Thu, 28 January 2010 08:50 Go to previous messageGo to next message
kobi  is currently offline kobi Friend
Messages: 4
Registered: January 2010
Junior Member
Thanks Alex for the information.
I tried to register the example and for some reason it doesn't work.

Do you have a full plugin project with template & registeration done?
Re: CDT new project wizard [message #510684 is a reply to message #510330] Thu, 28 January 2010 10:40 Go to previous messageGo to next message
mer  is currently offline mer Friend
Messages: 1
Registered: January 2010
Junior Member
Hi kobi,

I faced the same problem.

You have to do the following:
1.) adding dependencies (org.eclipse.cdt.core, org.eclipse.cdt.ui, org.eclipse.cdt.managedbuilder.core)
2.) create the extension point org.eclipse.cdt.core.templates
3.) add a template an specify id, location and projecttype (e.g. org.eclipse.cdt.build.core.buildArtefactType.exe)
4.) create a template.xml file according to the location attribute from 3.)
5.) define your own properties and property-groups in template.xml
The property-group represents a wizard page and the properties are the widgets.
6.) define processes for creating the project, folders, files in the workspace
You can use the following types in the process section:
type="org.eclipse.cdt.core.CreateSourceFolder" to create a source folder
type="org.eclipse.cdt.core.CreateFolder" to create a simple folder
type="org.eclipse.cdt.core.AddFiles" to add files from templates

Hopefully this is useful for your benefits...

Greetings
Re: CDT new project wizard [message #893224 is a reply to message #510684] Tue, 03 July 2012 09:32 Go to previous message
Javier Tarres is currently offline Javier TarresFriend
Messages: 6
Registered: July 2012
Junior Member
Hello,
I have followed the steps to create a new CDT project template as defined in Helios help: How to register templates and how to create templates


But I'm not able to obtain the new template wizard when click in New->Project

I have also tried to add org.eclipse.cdt.managedbuilder.core to Dependences Tab and still fails.


Thanks very much in advance
Javier
Previous Topic:print warning in console and show them in files
Next Topic:Indexer exceeds heap size
Goto Forum:
  


Current Time: Sat Sep 21 17:33:50 GMT 2024

Powered by FUDForum. Page generated in 0.03789 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top