Issue Details (XML | Word | Printable)

Key: GRECLIPSE-41
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Mike Klenk
Reporter: BarzilaiSpinak
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
GRECLIPSE

Implement code folding for GroovyEclipse

Created: 25/Jan/08 01:36 AM   Updated: 01/Oct/08 04:24 AM
Component/s: Editor
Affects Version/s: 1.5.6
Fix Version/s: 1.5.7

Time Tracking:
Not Specified

File Attachments: 1. Text File Folding.patch (56 kB)



 Description  « Hide
I notice that the GroovyEclipse plugin does not implement the very useful feature of code folding, that exists in almost every other language editor for Eclipse.
I'm sorry, I have no idea how to program that

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
BarzilaiSpinak added a comment - 24/Apr/08 10:57 AM
any plans for this one?
it would be really useful!

Thorsten Kamann added a comment - 24/Apr/08 02:48 PM
I have scheduled this for 1.6.0.

We must see how the folding works. Perhaps this would be moved to a later version. But everyone who needs this feature can vote for this issue...


Robert Munteanu added a comment - 01/May/08 06:17 AM
Folding is useful and a potential first step for Mylyn integration.

Matthias Köster added a comment - 07/May/08 06:43 AM
Attached patch contains code folding extension for the groovy editor. The code folding can be enabled\disabled via the Groovy->Editor preference page. I've also i18n the whole editor page Folding is supported for multiline comments, classes, methods and imports.
Due to limitations in Groovy's AST, folding for import just works for type imports!
I've also added a simple test.

Hope you accept my patch!


Mike Klenk added a comment - 01/Oct/08 04:24 AM
I added the patch and tested the functionality and added the tests to the test suite. Thanks to Matthias Köster for this improvement patch.