Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316571 - [Xtext] Empty string returned in getLinkText if given LeafNode
Summary: [Xtext] Empty string returned in getLinkText if given LeafNode
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 critical (vote)
Target Milestone: RC5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 02:28 EDT by Johan Wannheden CLA
Modified: 2017-09-19 15:58 EDT (History)
5 users (show)

See Also:
sebastian.zarnekow: helios+
Ed.Merks: pmc_approved+
cedric.brun: pmc_approved+
sven.efftinge: pmc_approved+
sven.efftinge: review+
sven.efftinge: review? (moritz.eysholdt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.