commit | 3010294502bdf722e4fe78ea325d11b835afd6b9 | [log] [tgz] |
---|---|---|
author | Alex Panchenko <alex.panchenko@gmail.com> | Thu Nov 29 19:02:20 2012 +0700 |
committer | Alex Panchenko <alex.panchenko@gmail.com> | Thu Nov 29 19:02:20 2012 +0700 |
tree | 585f7051073a09c4b9d5e123e926f0e557c15c60 | |
parent | dff49c1fb32c2b41d09029b4c4cb89515004d24b [diff] |
add method useful for testing folding providers
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/folding/DelegatingFoldingStructureProvider.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/folding/DelegatingFoldingStructureProvider.java index 34dc7c2..6c1cf46 100644 --- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/folding/DelegatingFoldingStructureProvider.java +++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/folding/DelegatingFoldingStructureProvider.java
@@ -778,6 +778,12 @@ } } + // for testing + public static IFoldingContent createContent(IModelElement input) + throws ModelException { + return new FoldingContent(input); + } + /** * @param modelElement * @param contents