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

Bug 313755

Summary: [Quickfix] SyntaxErrors do not have a useable user data channel
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sven.efftinge
Version: 1.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2010-05-20 11:48:29 EDT
The API for SyntaxError(Message) does not allow to set user data that will finally be available in the issue and thereby in the Quickfix-Provider.

There is no workaround as AbstractInternalAntlrParser#appendError is private. If it were public, one could do the following:

Subclass SyntaxErrorMessage, set the user data as an adapter on the actual SyntaxError, read the adapter-value and set it in XtextResource#addSyntaxErrors on a subclass of XtextSyntaxDiagnostic.
Comment 1 Sebastian Zarnekow CLA 2010-12-13 17:12:39 EST
Done with the refactoring of the node model.
Comment 2 Karsten Thoms CLA 2017-09-19 17:32:37 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:43:48 EDT
Closing all bugs that were set to RESOLVED before Neon.0