# Package org.eclipse.jdt.ui.text.folding

package org.eclipse.jdt.ui.text.folding
Application programming interfaces for interaction with the Eclipse Java Editor folding.

## Package Specification

Interfaces and a default implementation for contributions to the `org.eclipse.jdt.ui.foldingStructureProviders` extension point.

Related Packages
Package
Description
org.eclipse.jdt.ui.text
Application programming interfaces for interaction with the Eclipse Java User Interface text support.
org.eclipse.jdt.ui.text.java
Application programming interfaces for interaction with the Eclipse Java User Interface.
Class
Description
DefaultJavaFoldingStructureProvider
Updates the projection model of a class file or compilation unit.
DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation
A `ProjectionAnnotation` for java code.
IJavaFoldingPreferenceBlock
Contributors to the `org.eclipse.jdt.ui.foldingStructureProvider` extension point can specify an implementation of this interface to be displayed on the Java > Editor > Folding preference page.
IJavaFoldingStructureProvider
Contributors to the `org.eclipse.jdt.ui.foldingStructureProvider` extension point must specify an implementation of this interface which will create and maintain `ProjectionAnnotation` objects that define folded regions in the `ProjectionViewer`.
IJavaFoldingStructureProviderExtension
Extends `IJavaFoldingStructureProvider` with the following functions: collapsing of comments and members expanding and collapsing of certain java elements
IScopedJavaFoldingPreferenceBlock
Extends `IJavaFoldingPreferenceBlock` for supporting preferences in a given scope (e.g. projects).