C/C++ Folding Structure Provider

org.eclipse.cdt.ui.foldingStructureProviders

3.0

Contributions to this extension point define folding structures for the C/C++ editor. That is, they define the regions of a C/C++ source file that can be folded away. See org.eclipse.jface.text.source.ProjectionViewer for reference.

Extensions may optionally contribute a preference block which will appear on the C/C++ editor preference page.

<!ELEMENT extension (provider)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT provider EMPTY>

<!ATTLIST provider

id               CDATA #REQUIRED

name             CDATA #IMPLIED

class            CDATA #REQUIRED

preferencesClass CDATA #IMPLIED>


See org.eclipse.cdt.ui.text.folding.DefaultCFoldingStructureProvider for an example.

org.eclipse.cdt.ui.text.folding.DefaultCFoldingStructureProvider provides the default folding structure for the C/C++ editor. org.eclipse.cdt.internal.ui.text.folding.DefaultCFoldingPreferenceBlock provides the preference block for the default structure provider.