This discussion is archived
3 Replies Latest reply: Jan 24, 2006 11:30 PM by 484806 RSS

collapse/expand of indented source lines

11393 Newbie
Currently Being Moderated
I observed that in the margin of the pl/sql editor a [+] appears before each statement that normally precedes an indentated piece of code (e.g. BEGIN, FOR, IF etc.). On small pieces of such code clicking the [+] indeed nicely collapses all indented lines. This is a beautiful feature, which makes reading large chunks of code a lot easier.
However, on larger pieces of code it seems that the link with the matching END, END LOOP or END IF is lost, and the collapse does not work. In other cases too many lines are being collapsed.
  • 1. Re: collapse/expand of indented source lines
    Kris Rice Employee ACE
    Currently Being Moderated
    Thanks this is a known issue that we're working on.
    -kris
  • 2. Re: collapse/expand of indented source lines
    483448 Newbie
    Currently Being Moderated
    The problem I have found with this is that is seams to work fine except in situations where you have a WHEN in you package/function.

    Two examples that I have found will not collaspse the code correctly is where there is an exception clause present. The code will collaspe upto the WHEN clause, take out the WHEN clauses and it collapses fine.

    EG.

    exception
    when others then
    .......

    The other example is when using a WHEN statement within a cursor which you can do with the CASE statement, this causes the collaspse functionality to also fail.

    EG.

    cursor .......
    select (case when amount is not null then ..........


    Other than that I`m liking RAPTOR so far, thumbs up.....


    Hope that helps folks.

    Gary.
  • 3. Re: collapse/expand of indented source lines
    484806 Newbie
    Currently Being Moderated
    Also it would really be beneficial if there's an option to collapse all/ expand all kind of functionality... In case of large programs, that is really needed ..

    Thanks,

    Vishal.