CDT has moved from CVS repository to Git. See '[[Getting started with CDT development]]', '[[CDT/contributing]]', '[[CDT/git]]'

−

=== CVS ===

+

−

+

−

Instructions for getting the source through CVS are '[[Getting started with CDT development]]' and '[[CDT/contributing]]'

+

−

+

−

=== Git ===

+

* [[EGit/User_Guide]] contains the egit documentation and information on getting started with git.

* [[EGit/User_Guide]] contains the egit documentation and information on getting started with git.

−

* [[Git for Committers]] details using git in the Eclipse development process. This document describes how to use git to maintain your own development lines and use the tools to generate patches for upstream submission.

* [[Git for Committers]] details using git in the Eclipse development process. This document describes how to use git to maintain your own development lines and use the tools to generate patches for upstream submission.

#* If you need to run external program, perhaps on some event, and parse its output - extend '''ToolchainBuiltinSpecsDetector''' (or '''AbstractBuiltinSpecsDetector''');

+

#* If you need a simple one just to persist the entries (and optionally edit them) - use '''LanguageSettingsGenericProvider'''. Typically there is no need to extend it, just use this class. If you really really need to extend - copy its implementation and start with that;

+

#* for special logic that does not fit above - extend '''LanguageSettingsBaseProvider'''.

# In order to get providers created for new projects with New Project Wizard - use '''org.eclipse.cdt.managedbuilder.core.buildDefinitions''' extension point to associate the provider with your project type. Specify attribute "languageSettingsProviders" for element "configuration" or "toolchain". There is a brief description in the extension point schema which may be useful.

+

# There is one more extension point '''org.eclipse.cdt.ui.LanguageSettingsProviderAssociation'''. You can define there a custom icon, allow or disallow editing in UI and provide a custom page for editing options in Options pane.

+

For more details see JavaDoc for '''ILanguageSettingsProvider''' and other classes. There is a number of providers implemented that way in CDT. Search plugin.xml files to find out how extensions of '''org.eclipse.cdt.core.LanguageSettingsProvider''' extension point are implemented.

+

+

=== How do I contribute Include/Library paths or Macros to a project configuration using externalSettingsProvider extension point? ===

The external Settings Provider extension point can be used to register a build settings provider and have it dynamically called back at your own control. You can use this to contribute paths to your build configuration, making decisions at runtime on what should be added.

The external Settings Provider extension point can be used to register a build settings provider and have it dynamically called back at your own control. You can use this to contribute paths to your build configuration, making decisions at runtime on what should be added.

Line 78:

Line 78:

container here is a subfolder in the project where you wish to place the target.

container here is a subfolder in the project where you wish to place the target.

+

+

=== I developed my own property page but it is puzzling that my changes to configuration description are not being saved or being reversed. They are only saved if Cancel button is pressed #:-? ===

+

+

This happens because when user opens project properties CDT gets its own writeable configuration description to work with. If you get your own copy after that and save it it is going to be overwritten by that CDT configuration when user uses Apply or OK buttons. You need to apply your changes to that CDT configuration. You can get hold of it using call getResDesc() provided that your page extends AbstractCPropertyTab.

Getting the source

EGit/User_Guide contains the egit documentation and information on getting started with git.

Git for Committers details using git in the Eclipse development process. This document describes how to use git to maintain your own development lines and use the tools to generate patches for upstream submission.

Release Engineering

Where can I get the latest builds?

We have a build machine, cdt.eclipse.org, that we use for our builds. You can access them from the builds section on its home page. You can also generate your own builds by checking out the CDT out of CVS and using the Export -> Deployable Feature menu item provided by the PDE.

How do I contribute Include/Library paths or Macros to a project configuration using LanguageSettingsProvider extension point?

If you need to parse build output - extend AbstractBuildCommandParser (or even GCCBuildCommandParser);

If you need to run external program, perhaps on some event, and parse its output - extend ToolchainBuiltinSpecsDetector (or AbstractBuiltinSpecsDetector);

If you need a simple one just to persist the entries (and optionally edit them) - use LanguageSettingsGenericProvider. Typically there is no need to extend it, just use this class. If you really really need to extend - copy its implementation and start with that;

for special logic that does not fit above - extend LanguageSettingsBaseProvider.

Add extension of org.eclipse.cdt.core.LanguageSettingsProvider extension point and specify your provider in "class" attribute.

In order to get providers created for new projects with New Project Wizard - use org.eclipse.cdt.managedbuilder.core.buildDefinitions extension point to associate the provider with your project type. Specify attribute "languageSettingsProviders" for element "configuration" or "toolchain". There is a brief description in the extension point schema which may be useful.

There is one more extension point org.eclipse.cdt.ui.LanguageSettingsProviderAssociation. You can define there a custom icon, allow or disallow editing in UI and provide a custom page for editing options in Options pane.

For more details see JavaDoc for ILanguageSettingsProvider and other classes. There is a number of providers implemented that way in CDT. Search plugin.xml files to find out how extensions of org.eclipse.cdt.core.LanguageSettingsProvider extension point are implemented.

How do I contribute Include/Library paths or Macros to a project configuration using externalSettingsProvider extension point?

The external Settings Provider extension point can be used to register a build settings provider and have it dynamically called back at your own control. You can use this to contribute paths to your build configuration, making decisions at runtime on what should be added.

Use the org.eclipse.cdt.core.externalSettingsProvider extension point, give it an "ID"

Create a 'provider' element pointing at a class that extends CExternalSettingProvider

Register the class on your CDT projects by adding your settingsProvider ID to the configuration descriptions list of settings providers:

container here is a subfolder in the project where you wish to place the target.

I developed my own property page but it is puzzling that my changes to configuration description are not being saved or being reversed. They are only saved if Cancel button is pressed #:-?

This happens because when user opens project properties CDT gets its own writeable configuration description to work with. If you get your own copy after that and save it it is going to be overwritten by that CDT configuration when user uses Apply or OK buttons. You need to apply your changes to that CDT configuration. You can get hold of it using call getResDesc() provided that your page extends AbstractCPropertyTab.

Writing to a Console in Eclipse

Am I headless?

Hints

Can I find a method declare when my mouse point to a method for the CDT?

If you have a method selected in the Editor, pressing F3 will take you to the declaration (i.e. the prototype) and Ctrl-F3 with take you to the definition (i.e. the body). Both options are also available from the Context menu.