Community
Participate
Working Groups
Build Identifier: I20100608-0911 I work with Xtext 1.0.1. I would like to customize outline view. Therefore, I edited myPackage.ui.outline.MyDslTransformer.java to implement my own createNode() and getChildren(). Unfortunately, my methods are not called at runtime, except for top level rules. Reproducible: Always Steps to Reproduce: 1. Create a DSL grammar with at least 3 levels of nested rules. 2. Implement createNode() and getChildren() specific methods in myPackage.ui.outline.MyDslTransformer.java in order to customize outline view. 3. Run the plugin in a new eclipse instance. 4. Create a new file edited with MyDsl editor. Fill it with code which matches the 3 rule levels. 5. The outline view only provides information about top level rules.
NB : I implemented different createNode() and getChildren() for each subtype of EObject I wanted to show in the outline view.
Sorry, but I cannot reproduce this here and the outline works fine in Xtext and all examples. Maybe your label provider returns null as the text for some nodes? By default, such nodes and their children are skipped. Feel free to reopen this with an reproducible example.
Thank you for your answer. I was not aware that a node was skipped if its parent's label is null. Now I can customize the outline.
Closing all bugs that were set to RESOLVED before Neon.0