Home » Language IDEs » Java Development Tools (JDT) » Code Folding Plug-in
Code Folding Plug-in [message #159737] |
Fri, 21 May 2004 03:21 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
R.J. Lorimer![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=rjlorimer%40coffee-bytes.com) Messages: 21 Registered: July 2009 |
Junior Member |
|
|
I have a first code of a 'foldingStructureProvider' posted on my website.
Here is a quick list of added features:
* Collapsable Source file headers (how they missed this feature I do
not know - it's the longest comment in the file!)
* Control comment block and javadoc collapsing independently.
* ALL Control structures are now collapsable. Yes, this means if, else,
try, catch, while, for, named blocks, switches, and even static
initializers.
* Filter folding structures by # of lines. One of the things I noticed
in building this plug-in was that when you add if/else/while/for etc as
foldable regions, you get a WHOLE LOT of arrows. To counter that, you
can specify the minimum # of lines a structure should have before it
should become foldable.
http://www.coffee-bytes.com/servlet/ShowEntryForId?id=70
Give it a shot! (You will inevitably find bugs in the process)
R.J.
|
|
|
Re: Code Folding Plug-in [message #159749 is a reply to message #159737] |
Fri, 21 May 2004 12:21 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Haris Peco![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=snpe%40snpe.rs) Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
Hello,
Is it possible that arbitrary region text in Java file be foldable ?
I want select any region text and with popup menu colapse and fold it
Regards
Haris Peco
R.J. Lorimer wrote:
> I have a first code of a 'foldingStructureProvider' posted on my website.
> Here is a quick list of added features:
>
> * Collapsable Source file headers (how they missed this feature I do
> not know - it's the longest comment in the file!)
>
> * Control comment block and javadoc collapsing independently.
>
> * ALL Control structures are now collapsable. Yes, this means if, else,
> try, catch, while, for, named blocks, switches, and even static
> initializers.
>
> * Filter folding structures by # of lines. One of the things I noticed
> in building this plug-in was that when you add if/else/while/for etc as
> foldable regions, you get a WHOLE LOT of arrows. To counter that, you
> can specify the minimum # of lines a structure should have before it
> should become foldable.
>
>
> http://www.coffee-bytes.com/servlet/ShowEntryForId?id=70
> Give it a shot! (You will inevitably find bugs in the process)
>
> R.J.
|
|
|
Re: Code Folding Plug-in [message #159752 is a reply to message #159737] |
Fri, 21 May 2004 11:23 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: rndzank.comcast.net.not_this.net
R.J., is there a chance to make collapsable also continuous line
comments section? (in addition to block comments)
I have a situation with long file headers that are not block comments.
Thanks
r.
P.S. Very good plugin, I forgot to tell you. Thanks.
R.J. Lorimer wrote:
> I have a first code of a 'foldingStructureProvider' posted on my website.
> Here is a quick list of added features:
>
> * Collapsable Source file headers (how they missed this feature I do
> not know - it's the longest comment in the file!)
>
> * Control comment block and javadoc collapsing independently.
>
> * ALL Control structures are now collapsable. Yes, this means if, else,
> try, catch, while, for, named blocks, switches, and even static
> initializers.
>
> * Filter folding structures by # of lines. One of the things I noticed
> in building this plug-in was that when you add if/else/while/for etc as
> foldable regions, you get a WHOLE LOT of arrows. To counter that, you
> can specify the minimum # of lines a structure should have before it
> should become foldable.
>
>
> http://www.coffee-bytes.com/servlet/ShowEntryForId?id=70
> Give it a shot! (You will inevitably find bugs in the process)
>
> R.J.
|
|
|
Re: Code Folding Plug-in [message #159755 is a reply to message #159752] |
Fri, 21 May 2004 12:04 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
Richard Nemec <rndzank.comcast.net@not_this.net> wrote:
BTW, I am not sure, is this bug in Eclipse or this plugin,
but I saw problem with printing /* */ comments, it collapsed it directly
after printing and when I undo, adds '*' in random location.
In general folding looks as good idea, with bad implementation. :-(
> R.J., is there a chance to make collapsable also continuous line
> comments section? (in addition to block comments)
> I have a situation with long file headers that are not block comments.
> Thanks
> r.
> P.S. Very good plugin, I forgot to tell you. Thanks.
> R.J. Lorimer wrote:
>> I have a first code of a 'foldingStructureProvider' posted on my website.
>> Here is a quick list of added features:
>>
>> * Collapsable Source file headers (how they missed this feature I do
>> not know - it's the longest comment in the file!)
>>
>> * Control comment block and javadoc collapsing independently.
>>
>> * ALL Control structures are now collapsable. Yes, this means if, else,
>> try, catch, while, for, named blocks, switches, and even static
>> initializers.
>>
>> * Filter folding structures by # of lines. One of the things I noticed
>> in building this plug-in was that when you add if/else/while/for etc as
>> foldable regions, you get a WHOLE LOT of arrows. To counter that, you
>> can specify the minimum # of lines a structure should have before it
>> should become foldable.
>>
>>
>> http://www.coffee-bytes.com/servlet/ShowEntryForId?id=70
>> Give it a shot! (You will inevitably find bugs in the process)
>>
>> R.J.
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
| | | |
Re: Code Folding Plug-in [message #159952 is a reply to message #159749] |
Fri, 21 May 2004 20:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
R.J. Lorimer![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=rjlorimer%40coffee-bytes.com) Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Haris,
Yes, it should be possible, although it requires some additional work.
It would also be possible to fold a region between two user defined
comments; again - with additional work. I'll see what I can come up with
for this feature request for you.
R.J.
snpe wrote:
> Hello,
> Is it possible that arbitrary region text in Java file be foldable ?
> I want select any region text and with popup menu colapse and fold it
>
> Regards
> Haris Peco
> R.J. Lorimer wrote:
>
>
>>I have a first code of a 'foldingStructureProvider' posted on my website.
>>Here is a quick list of added features:
>>
>>* Collapsable Source file headers (how they missed this feature I do
>>not know - it's the longest comment in the file!)
>>
>>* Control comment block and javadoc collapsing independently.
>>
>>* ALL Control structures are now collapsable. Yes, this means if, else,
>>try, catch, while, for, named blocks, switches, and even static
>>initializers.
>>
>>* Filter folding structures by # of lines. One of the things I noticed
>>in building this plug-in was that when you add if/else/while/for etc as
>>foldable regions, you get a WHOLE LOT of arrows. To counter that, you
>>can specify the minimum # of lines a structure should have before it
>>should become foldable.
>>
>>
>>http://www.coffee-bytes.com/servlet/ShowEntryForId?id=70
>>Give it a shot! (You will inevitably find bugs in the process)
>>
>>R.J.
>
>
|
|
| |
Goto Forum:
Current Time: Thu Aug 15 00:50:26 GMT 2024
Powered by FUDForum. Page generated in 0.04488 seconds
|