Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how does code folding work?
how does code folding work? [message #241122] Thu, 13 May 2004 06: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 07:34 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
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 16: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 04: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: Thu Dec 26 12:26:14 GMT 2024

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

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

Back to the top