Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




EclipseJDT Plug-in Developer Guide
Previous Page Home Next Page

Java Folding Structure Provider



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 - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

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

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

Supplied Implementation:
org.eclipse.jdt.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

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire