The Stratego outline only has one rules or strategies section, even if there are multiple. We (or at least I) use these sections to group strategies. It would be nice if these sections appear in the outline, and even cooler if the comment on the same line would be displayed in the outline.

Submitted by Gabriël Konat on 14 October 2013 at 11:41

On 14 October 2013 at 11:41 Gabriël Konat tagged outline

On 14 October 2013 at 11:41 Gabriël Konat tagged stratego

On 14 October 2013 at 19:59 Oskar van Rest commented:

The reason I chose for having everything in one section in the outline, is that you can group rules/strategies that have the same signature, even if they appear in different sections in the file. In this way you can easily find and navigate to all occurrences of a strategy.

If there are more people who prefer it your way though, I’ll change it back again.


On 14 October 2013 at 20:03 Oskar van Rest commented:

Note: in the SDF outline, context-free and lexical sorts currently also get grouped even if they appear in different sections.


On 14 October 2013 at 20:27 Guido Wachsmuth commented:

This brings us back to the point of two outline views. Typically, the Eclipse outline view is a local one, that focusses on the structure of a file and reflects this structure very closely. But then there is a more global view. Why should we group the strategies of one file, but not the strategies of the whole project. I discussed this in some mail exchange with Oskar, I think. You want both, the file based one, and the project-wide view. The JDT handles the global views with user-requested, manually updated views such as the type hierarchy view. We could have both in the generic outline. One is based on a transformation on the file, the other one is based on the project-wide index (NaBL based outlining). You could switch between both outlines with a button next to the sorting button that is already there.
Or we provide the file-based outline as now, and another Spoofax outline view with a project-wide outline.


On 15 October 2013 at 09:41 Gabriël Konat commented:

@guwac: Indeed, related issue for that: https://yellowgrass.org/issue/Spoofax/708

@oskarvanrest: I like the grouping of things with the same signature, but would still like to see the sections from the file in the outline. Thoughts from other people?


On 15 October 2013 at 09:41 Gabriël Konat tagged rfc

On 15 October 2013 at 09:53 Eelco Visser commented:

I think there should be multiple sorting options.

  • An alphabetical index of all strategies in the current module.
  • Such an index for the whole project.
  • An index of all strategies including libraries.
  • An index that follows the structure of the current module with named sections

It would be nice if strategies with the same name can be compressed into a single entry that can be unfolded to show all instances

Log in to post comments