|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
public class DefaultFoldingStructureProvider
Default implementation of interface IFoldingStructureProvider/
| Nested Class Summary | |
|---|---|
class |
DefaultFoldingStructureProvider.ProjectionChangeListener
Internal projection listener. |
| Constructor Summary | |
|---|---|
DefaultFoldingStructureProvider()
|
|
| Method Summary | |
|---|---|
protected void |
addProjectionAnnotation(boolean allowCollapse,
org.eclipse.jface.text.Position foldingRegion,
java.util.Map<org.eclipse.jface.text.source.projection.ProjectionAnnotation,org.eclipse.jface.text.Position> additionsMap)
|
protected void |
calculateProjectionAnnotationModel(boolean allowCollapse)
|
protected org.eclipse.jface.text.source.projection.ProjectionAnnotation |
createProjectionAnnotation(boolean isCollapsed,
org.eclipse.jface.text.Position foldedRegion)
|
protected void |
handleProjectionDisabled()
|
protected void |
handleProjectionEnabled()
|
void |
initialize()
(Re-)initializes the structure provided by the receiver. |
void |
install(XtextEditor editor,
org.eclipse.jface.text.source.projection.ProjectionViewer viewer)
Installs this structure provider on the given editor and viewer. |
protected boolean |
isInstalled()
Returns true if the provider is installed, false otherwise. |
protected org.eclipse.jface.text.source.Annotation[] |
mergeFoldingRegions(java.util.Collection<FoldedPosition> foldedPositions,
org.eclipse.jface.text.source.projection.ProjectionAnnotationModel projectionAnnotationModel)
|
void |
modelChanged(XtextResource resource)
|
void |
uninstall()
Uninstalls this structure provider. |
protected void |
updateFoldingRegions(boolean allowCollapse,
org.eclipse.jface.text.source.projection.ProjectionAnnotationModel model,
java.util.Collection<FoldedPosition> foldedPositions,
org.eclipse.jface.text.source.Annotation[] deletions)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFoldingStructureProvider()
| Method Detail |
|---|
public void install(XtextEditor editor,
org.eclipse.jface.text.source.projection.ProjectionViewer viewer)
IFoldingStructureProviderviewer and enable / disable generation of projection structure accordingly.
install in interface IFoldingStructureProvidereditor - the editor that this provider works onviewer - the projection viewer that displays the annotations created by this structure providerpublic void initialize()
IFoldingStructureProvider
initialize in interface IFoldingStructureProviderpublic void uninstall()
IFoldingStructureProvider
uninstall in interface IFoldingStructureProviderprotected final boolean isInstalled()
true if the provider is installed, false otherwise.
true if the provider is installed, false otherwisepublic void modelChanged(XtextResource resource)
modelChanged in interface IXtextModelListenerIXtextModelListener.modelChanged(org.eclipse.xtext.resource.XtextResource)protected void handleProjectionEnabled()
protected void handleProjectionDisabled()
protected void calculateProjectionAnnotationModel(boolean allowCollapse)
protected org.eclipse.jface.text.source.Annotation[] mergeFoldingRegions(java.util.Collection<FoldedPosition> foldedPositions,
org.eclipse.jface.text.source.projection.ProjectionAnnotationModel projectionAnnotationModel)
protected void updateFoldingRegions(boolean allowCollapse,
org.eclipse.jface.text.source.projection.ProjectionAnnotationModel model,
java.util.Collection<FoldedPosition> foldedPositions,
org.eclipse.jface.text.source.Annotation[] deletions)
protected void addProjectionAnnotation(boolean allowCollapse,
org.eclipse.jface.text.Position foldingRegion,
java.util.Map<org.eclipse.jface.text.source.projection.ProjectionAnnotation,org.eclipse.jface.text.Position> additionsMap)
protected org.eclipse.jface.text.source.projection.ProjectionAnnotation createProjectionAnnotation(boolean isCollapsed,
org.eclipse.jface.text.Position foldedRegion)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||