In my language, I have one type of node that supports outlining. When it parses successfully, everything works fine. The language looks like:
formula <id>
applies to <id> { , <id> }
<expression>
applies to <id> { , <id> }
<expression>
...
where applies to ... can appear as many times as desired, but must appear at least once.
My outlining is for the "expression" after applies to's ID list. Expression can be quite long (not indicated above).
Anyway, when I make changes to each "applies to" section, the outlining will go away while the text in the section is not a valid expression and come back as soon as it is a valid expression.
However, when I edit the first "applies to" section, the outlining controls for all sections disappear (not terribly surprising, since the entire formula is bogus), but then when I correct the syntax problems in that section, only the outlining controls for that section reappear, the others continue to be missing. Only after I edit the later "applies to" sections do they reappear.]
The question is this - is this a bug, or am I doing something wrong in my parser / call to CollapsibleNodeOutliningParser? Oh... I almost forgot, I've modeled my collapsing "applies to" sections after the simple language demo's ICollapsibleNode implementation (for function, IIRC).
Thanks,
formula <id>
applies to <id> { , <id> }
<expression>
applies to <id> { , <id> }
<expression>
...
where applies to ... can appear as many times as desired, but must appear at least once.
My outlining is for the "expression" after applies to's ID list. Expression can be quite long (not indicated above).
Anyway, when I make changes to each "applies to" section, the outlining will go away while the text in the section is not a valid expression and come back as soon as it is a valid expression.
However, when I edit the first "applies to" section, the outlining controls for all sections disappear (not terribly surprising, since the entire formula is bogus), but then when I correct the syntax problems in that section, only the outlining controls for that section reappear, the others continue to be missing. Only after I edit the later "applies to" sections do they reappear.]
The question is this - is this a bug, or am I doing something wrong in my parser / call to CollapsibleNodeOutliningParser? Oh... I almost forgot, I've modeled my collapsing "applies to" sections after the simple language demo's ICollapsibleNode implementation (for function, IIRC).
Thanks,
Kelly Leahy Software Architect Milliman, USA