org.eclipse.xtext.xtend2.ui.editor
Class Xtend2FoldingRegionProvider
java.lang.Object
org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider
org.eclipse.xtext.xtend2.ui.editor.Xtend2FoldingRegionProvider
- All Implemented Interfaces:
- IFoldingRegionProvider
public class Xtend2FoldingRegionProvider
- extends DefaultFoldingRegionProvider
- Author:
- Sebastian Zarnekow - Initial contribution and API, Holger Schill
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Xtend2FoldingRegionProvider
public Xtend2FoldingRegionProvider()
isHandled
protected boolean isHandled(org.eclipse.emf.ecore.EObject object)
- Overrides:
isHandled
in class DefaultFoldingRegionProvider
- Returns:
true
if the object should be folded if it spans more than one line.
Default is false
if and only if the object is the root object of the resource.
shouldProcessContent
protected boolean shouldProcessContent(org.eclipse.emf.ecore.EObject object)
- Overrides:
shouldProcessContent
in class DefaultFoldingRegionProvider
- Returns:
- clients should
false
to abort the traversal of the model.
doGetFoldingRegions
protected java.util.Collection<FoldedPosition> doGetFoldingRegions(IXtextDocument xtextDocument,
XtextResource xtextResource)
- Overrides:
doGetFoldingRegions
in class DefaultFoldingRegionProvider
computeImportFolding
protected void computeImportFolding(XtextResource xtextResource,
IFoldingRegionAcceptor<ITextRegion> foldingRegionAcceptor)
getFullTextRegionForFeature
protected ITextRegion getFullTextRegionForFeature(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature)
createAcceptor
protected IFoldingRegionAcceptor<ITextRegion> createAcceptor(IXtextDocument xtextDocument,
java.util.Collection<FoldedPosition> foldedPositions,
boolean initiallyCollapsed)