how does code folding work? [message #241122] |
Thu, 13 May 2004 06:20 |
Eclipse User |
|
|
|
Originally posted by: mamooth.hotmail.com
After enabling code folding in the latest builds, it does not detect all
the java code blocks (such as control structures, brackets, etc...). I was
wondering if it was designed this way or if there is some way to enable
the java code block detection.
Thanks in advance
|
|
|
|
Re: how does code folding work? [message #241246 is a reply to message #241138] |
Thu, 13 May 2004 16:53 |
Eclipse User |
|
|
|
Originally posted by: smesh.openrules.com
> The standard folding does not currently allow for folding of blocks or
> arrays and such. However, you can provide your own folding structure
> provider that defines which regions of a document should be foldable.
>
> See the org.eclipse.jdt.ui.foldingStructureProvider extension point.
Does the simpliest provider *fold selected region* exist?
--
Sam Mesh - http://openrules.com
|
|
|
Re: how does code folding work? [message #241353 is a reply to message #241138] |
Fri, 14 May 2004 04:18 |
Eclipse User |
|
|
|
Originally posted by: mamooth.hotmail.com
Unfortunately as there are no examples and I have never written for the
eclipse platform, I think I will have to wait for documentation or some
simple examples.
Thanks anyways
Tom Eicher wrote:
> John Wright wrote:
> > After enabling code folding in the latest builds, it does not detect all
> > the java code blocks (such as control structures, brackets, etc...). I was
> > wondering if it was designed this way or if there is some way to enable
> > the java code block detection.
> The standard folding does not currently allow for folding of blocks or
> arrays and such. However, you can provide your own folding structure
> provider that defines which regions of a document should be foldable.
> See the org.eclipse.jdt.ui.foldingStructureProvider extension point.
> -tom
|
|
|
Powered by
FUDForum. Page generated in 0.03383 seconds