|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.ui.text.folding.DefaultJavaFoldingStructureProvider
public class DefaultJavaFoldingStructureProvider
Updates the projection model of a class file or compilation unit.
Clients may instantiate or subclass. Subclasses must make sure to always call the superclass' code when overriding methods that are marked with "subclasses may extend".
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
---|---|
DefaultJavaFoldingStructureProvider()
Creates a new folding provider. |
Method Summary | |
---|---|
void |
collapseComments()
Collapses all comments. |
void |
collapseElements(IJavaScriptElement[] elements)
Collapses the given elements. |
void |
collapseMembers()
Collapses all members except for top level types. |
void |
expandElements(IJavaScriptElement[] elements)
Expands the given elements. |
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. Subclasses may extend. |
void |
uninstall()
Uninstalls this structure provider. Subclasses may extend. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJavaFoldingStructureProvider()
installed
on an editor/viewer pair before it
can be used, and uninstalled
when not used any longer.
The projection state may be reset by calling initialize()
.
Method Detail |
---|
public void install(ITextEditor editor, ProjectionViewer viewer)
viewer
and enable / disable generation of projection
structure accordingly.
Subclasses may extend.
install
in interface IJavaFoldingStructureProvider
editor
- the editor that this provider works onviewer
- the projection viewer that displays the annotations created
by this structure providerpublic void uninstall()
Subclasses may extend.
uninstall
in interface IJavaFoldingStructureProvider
public final void initialize()
IJavaFoldingStructureProvider
initialize
in interface IJavaFoldingStructureProvider
public final void collapseMembers()
IJavaFoldingStructureProviderExtension
collapseMembers
in interface IJavaFoldingStructureProviderExtension
public final void collapseComments()
IJavaFoldingStructureProviderExtension
collapseComments
in interface IJavaFoldingStructureProviderExtension
public final void collapseElements(IJavaScriptElement[] elements)
IJavaFoldingStructureProviderExtension
collapseElements
in interface IJavaFoldingStructureProviderExtension
elements
- the JavaScript elements to collapse (the array and its elements must not be
modified)public final void expandElements(IJavaScriptElement[] elements)
IJavaFoldingStructureProviderExtension
expandElements
in interface IJavaFoldingStructureProviderExtension
elements
- the JavaScript elements to expand (the array and its elements must not be modified)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |