Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Outline View not working in Xtext 1.0.1?
Outline View not working in Xtext 1.0.1? [message #555385] Thu, 26 August 2010 13:24 Go to next message
Antonio D'Ettole is currently offline Antonio D'EttoleFriend
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 #555396 is a reply to message #555385] Thu, 26 August 2010 13:42 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Antonio,

how do you customize your outline? Does the outline of mwe2 or xtext
files show up correctly?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 26.08.10 15:24, schrieb Antonio D'Ettole:
> 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.
> 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
Re: Outline View not working in Xtext 1.0.1? [message #555628 is a reply to message #555396] Fri, 27 August 2010 12:34 Go to previous messageGo to next message
Antonio D'Ettole is currently offline Antonio D'EttoleFriend
Messages: 10
Registered: July 2010
Junior Member
Hi Sebastian,

thanks for helping as usual! I'm not customizing the outline in any particular way, apart from having from custom icons. I tried opening .mwe2 and .xtext files and the outline shows correctly.

Cheers,
Antonio
Re: Outline View not working in Xtext 1.0.1? [message #556686 is a reply to message #555385] Thu, 02 September 2010 10:23 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
On 08/26/2010 03:24 PM, Antonio D'Ettole wrote:
> 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.
> 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?

Same problem where except that the outline and quick outline views are
entirely empty.

Cheers
Philippe
Re: Outline View not working in Xtext 1.0.1? [message #556775 is a reply to message #556686] Thu, 02 September 2010 15:06 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Am 9/2/10 12:23 PM, schrieb Philippe Marschall:
> On 08/26/2010 03:24 PM, Antonio D'Ettole wrote:
>> 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.
>> 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?
>
> Same problem where except that the outline and quick outline views are
> entirely empty.
>

Do you have made any customizations to the outline?

Sven

--
--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: Outline View not working in Xtext 1.0.1? [message #556785 is a reply to message #556775] Thu, 02 September 2010 15:17 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
On 09/02/2010 05:06 PM, Sven Efftinge wrote:
> Am 9/2/10 12:23 PM, schrieb Philippe Marschall:
>> On 08/26/2010 03:24 PM, Antonio D'Ettole wrote:
>>> 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.
>>> 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?
>>
>> Same problem where except that the outline and quick outline views are
>> entirely empty.
>>
>
> Do you have made any customizations to the outline?

In one case yes, in an other case no. Nothing in the console or error log.

Cheers
Philippe
Re: Outline View not working in Xtext 1.0.1? [message #586289 is a reply to message #556785] Tue, 21 September 2010 17:51 Go to previous messageGo to next message
Fabian G. is currently offline Fabian G.Friend
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 #608485 is a reply to message #586289] Tue, 21 September 2010 20:37 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Fabian,

sorry - there is nothing new to be told about this topic as we did not
receive a single bug report with a reproducable discription :-(

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 21.09.10 19:51, schrieb Fabian:
> 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).
>
> 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?
Re: Outline View not working in Xtext 1.0.1? [message #647089 is a reply to message #608485] Tue, 04 January 2011 14:57 Go to previous messageGo to next message
Jonathan is currently offline JonathanFriend
Messages: 6
Registered: December 2010
Junior Member
Hi everybody,

I have the same problem : I cannot customize the outline view except for top level rules.
I submited bug #333477 on bugzilla.

Cheers,

Jonathan
Re: Outline View not working in Xtext 1.0.1? [message #647091 is a reply to message #647089] Tue, 04 January 2011 15:19 Go to previous messageGo to next message
Jonathan is currently offline JonathanFriend
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

Re: Outline View not working in Xtext 1.0.1? [message #647119 is a reply to message #647091] Tue, 04 January 2011 16:33 Go to previous message
Jonathan is currently offline JonathanFriend
Messages: 6
Registered: December 2010
Junior Member
Actually, I misunderstood the outline's behavior : if a node's label provider returns null (i.e. it is not set in YourDslLabelProvider.java), it is skipped by the outline, and so are its *children*.
Previous Topic:how to deal with a non context free lexing issue
Next Topic:Loading model objects
Goto Forum:
  


Current Time: Fri Apr 26 08:25:56 GMT 2024

Powered by FUDForum. Page generated in 0.03597 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top