Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how does code folding work?
how does code folding work? [message #241122] Thu, 13 May 2004 02:20 Go to next message
Eclipse UserFriend
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 #241138 is a reply to message #241122] Thu, 13 May 2004 03:34 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: how does code folding work? [message #241246 is a reply to message #241138] Thu, 13 May 2004 12:53 Go to previous messageGo to next message
Eclipse UserFriend
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 00:18 Go to previous message
Eclipse UserFriend
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
Previous Topic:about rcp close
Next Topic:CVS Compare greyed out in Resource History
Goto Forum:
  


Current Time: Wed Mar 12 16:08:17 EDT 2025

Powered by FUDForum. Page generated in 0.03816 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top