Home » Language IDEs » Java Development Tools (JDT) » Code Folding Plug-in
Code Folding Plug-in [message #159737] |
Thu, 20 May 2004 23:21  |
Eclipse User |
|
|
|
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 08:21   |
Eclipse User |
|
|
|
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 07:23   |
Eclipse User |
|
|
|
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 08:04   |
Eclipse User |
|
|
|
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 16:09   |
Eclipse User |
|
|
|
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 May 01 09:20:44 EDT 2025
Powered by FUDForum. Page generated in 0.08852 seconds
|