Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333477 - Outline nodes cannot be customized except for root nodes
Summary: Outline nodes cannot be customized except for root nodes
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 09:49 EST by jonathan.bayle CLA
Modified: 2017-09-19 17:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jonathan.bayle CLA 2011-01-04 09:49:13 EST
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.
Comment 1 jonathan.bayle CLA 2011-01-04 09:53:11 EST
NB : I implemented different createNode() and getChildren() for each subtype of EObject I wanted to show in the outline view.
Comment 2 Jan Koehnlein CLA 2011-01-04 10:20:38 EST
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.
Comment 3 jonathan.bayle CLA 2011-01-04 11:29:14 EST
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.
Comment 4 Karsten Thoms CLA 2017-09-19 17:49:08 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:59:59 EDT
Closing all bugs that were set to RESOLVED before Neon.0