Package org.eclipse.jdt.ui.text.folding
Interface IJavaFoldingStructureProvider
-
- All Known Implementing Classes:
DefaultJavaFoldingStructureProvider
public interface IJavaFoldingStructureProviderContributors to theorg.eclipse.jdt.ui.foldingStructureProviderextension point must specify an implementation of this interface which will create and maintainProjectionAnnotationobjects that define folded regions in theProjectionViewer.Clients may implement this interface.
In order to provide backward compatibility for clients of
IJavaFoldingStructureProvider, extension interfaces are used to provide a means of evolution. The following extension interfaces exist:IJavaFoldingStructureProviderExtensionsince version 3.2 introducing the following functions:- collapsing of comments and members
- expanding and collapsing of certain java elements
- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize()(Re-)initializes the structure provided by the receiver.voidinstall(ITextEditor editor, ProjectionViewer viewer)Installs this structure provider on the given editor and viewer.voiduninstall()Uninstalls this structure provider.
-
-
-
Method Detail
-
install
void install(ITextEditor editor, ProjectionViewer viewer)
Installs this structure provider on the given editor and viewer. Implementations should listen to the projection events generated byviewerand enable / disable generation of projection structure accordingly.- Parameters:
editor- the editor that this provider works onviewer- the projection viewer that displays the annotations created by this structure provider
-
uninstall
void uninstall()
Uninstalls this structure provider. Any references to editors or viewers should be cleared.
-
initialize
void initialize()
(Re-)initializes the structure provided by the receiver.
-
-