Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316571

Summary: [Xtext] Empty string returned in getLinkText if given LeafNode
Product: [Modeling] TMF Reporter: Johan Wannheden <johan.wannheden>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: cedric.brun, Ed.Merks, sebastian.zarnekow, stephane, sven.efftinge
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Ed.Merks: pmc_approved+
cedric.brun: pmc_approved+
sven.efftinge: pmc_approved+
sven.efftinge: review+
sven.efftinge: review? (moritz.eysholdt)
Target Milestone: RC5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Johan Wannheden CLA 2010-06-11 02:28:09 EDT
Build Identifier: 20100218-1602

I've encountered a case where linking errors are not displayed correctly anymore. The error message displayed is of the form "Couldn't resolve reference to <EClass name> ''.". (Note that there is an empty string between the two single quotes, i.e. the "link text" is empty.)

It appears that in the following method the third element of the triple actually is a leaf node itself:

LazyLinkingResource$DiagnosticMessageContext [line: 146] - getLinkText()

Shouldn't the leaf node's text be returned if the AbstractNode is of type LeafNode?

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2010-06-13 09:22:03 EDT
Fixed in HEAD.
Comment 2 Karsten Thoms CLA 2017-09-19 15:58:41 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.