#
Java Folding Structure Provider

###### Identifier:

org.eclipse.jdt.ui.foldingStructureProviders

###### Since:

3.0

###### Description:

Contributions to this extension point define folding structures for the Java editor. That is, they define the regions of a Java 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 Java editor preference page.

###### Configuration Markup:

<!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>

- id - The unique identifier of this provider.
- name - The name of this provider. If none is given, the id is used instead.
- class - An implementation of org.eclipse.jdt.ui.text.folding.IJavaFoldingStructureProvider
- preferencesClass - An implementation of org.eclipse.jdt.ui.text.folding.IJavaFoldingPreferenceBlock

###### Examples:

See `org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider` for an example.

###### Supplied Implementation:

`org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider` provides the default folding structure for the Java editor. `org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingPreferenceBlock` provides the preference block for the default structure provider.

Copyright (c) 2001, 2004 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html