Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.jdt.ui.text.folding
Interface IJavaFoldingStructureProvider

public interface 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 the `ProjectionViewer`.

Clients may implement this interface.

Since:
  3.0

Method Summary
`void` | `initialize()` (Re-)initializes the structure provided by the receiver.
`void` | `install(ITextEditor editor, ProjectionViewer viewer)` Installs this structure provider on the given editor and viewer.
`void` | `uninstall()` Uninstalls this structure provider.

Method Detail

### install

    public void install(ITextEditor editor,
                        ProjectionViewer viewer)

  Installs this structure provider on the given editor and viewer. Implementations should listen to the projection events generated by `viewer` and enable / disable generation of projection structure accordingly.

  Parameters:
    `editor` - the editor that this provider works on
    `viewer` - the projection viewer that displays the annotations created by this structure provider

### uninstall

    public void uninstall()

  Uninstalls this structure provider. Any references to editors or viewers should be cleared.

### initialize

    public void initialize()

  (Re-)initializes the structure provided by the receiver.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.