Outline View not working in Xtext 1.0.1? [message #555385] |
Thu, 26 August 2010 13:24 |
Antonio D'Ettole Messages: 10 Registered: July 2010 |
Junior Member |
|
|
Hi everybody,
I updated the Xtext feature to 1.0.1 today, but after the update I ran my project and the outline view now only displays the root node. The console shows no error messages/exceptions though.
To be extra sure, I extracted the zip file of a clean installation of eclipse with Xtext 1.0.0 and imported the project and ran it, the outline view is displayed correctly. Was something changed in the update that I should consider?
Thanks,
Antonio
[Updated on: Thu, 26 August 2010 13:25] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Outline View not working in Xtext 1.0.1? [message #586289 is a reply to message #556785] |
Tue, 21 September 2010 17:51 |
Fabian G. Messages: 60 Registered: May 2010 Location: Christchurch (NZ) |
Member |
|
|
Same problem here with a customized outline. It seems it process only the root node (and sometimes the first child) and stops there (made a bunch of debug statements with a logger).
With an untouched outline (for another language), it seems to work.
If I create a new file in my dsl, the outline is created/updated correctly and correspond to my customized view.
Any news about that problem?
[Updated on: Tue, 21 September 2010 18:45] Report message to a moderator
|
|
|
|
|
Re: Outline View not working in Xtext 1.0.1? [message #647091 is a reply to message #647089] |
Tue, 04 January 2011 15:19 |
Jonathan Messages: 6 Registered: December 2010 |
Junior Member |
|
|
There's a workaround : one can create "virtual" outline nodes instead.
For instance, here is a method that allows to show a subrule in the outline view :
public ContentOutlineNode createNode(myEObject o,
ContentOutlineNode parentNode) {
ContentOutlineNode node = super.newOutlineNode(o, parentNode);
mySubRule sr = o.getSubRule();
if (sr != null) {
ContentOutlineNode child = super.createOutlineNode(sr, node);
child.setLabel("SUBRULE " + child.getLabel());
node.addChildren(child);
}
return node;
}
[Updated on: Tue, 04 January 2011 15:35] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03597 seconds