Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Re: [Xtext2] Extending Xbase expressions
Re: [Xtext2] Extending Xbase expressions [message #663701] Wed, 06 April 2011 09:02 Go to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Please note, that the Xtext newsgroup is eclipse.modeling.tmf.

Am 4/6/11 9:39 AM, schrieb Ingo Meyer:
>
> XLiteral:
> XClosure |
> XBooleanLiteral |
> XIntLiteral |
> XDecimalLiteral |
> XNullLiteral |
> XStringLiteral |
> XTypeLiteral
> ;
>
>
> but got "Cannot add supertype 'XLiteral' to sealed type 'XExpression'."

You need to explicitly declare the return type:

XLiteral returns XExpression :
...
;

--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: [Xtext2] Extending Xbase expressions (SOLVED) [message #663733 is a reply to message #663701] Wed, 06 April 2011 11:09 Go to previous message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Oh yes, but this was just a copy-paste mistake for the text here.
Originally I had this return type.

My mistake was, that I forgot the import:

import "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore"


Thanks,

Ingo
Previous Topic:[xtext 2] Is Refactoring available in Indigo M6?
Next Topic:Manipulating the model in Xtext
Goto Forum:
  


Current Time: Sat Apr 27 03:32:24 GMT 2024

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

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

Back to the top