Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How can I define constructors in xtend class files?(Constructors in xtend class files)
How can I define constructors in xtend class files? [message #671310] Tue, 17 May 2011 13:12 Go to next message
Olaf Kossak is currently offline Olaf KossakFriend
Messages: 2
Registered: July 2009
Junior Member
Is there a way to define constructors in xtend class files? I am looking especially for a way to initialize instance variables of super classes, something like this:

class XtendFileTemplate extends BaseTemplate {

	XtendFileTemplate(DslNode pNode) {
		super(pNode)
	}

(no subject) [message #671378 is a reply to message #671310] Tue, 17 May 2011 16:45 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Olaf,

this is currently not possible. Please file a feature request.

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

Am 17.05.11 15:12, schrieb Olaf Kossak:
> Is there a way to define constructors in xtend class files?
> I am looking especially for a way to initialize instance
> variables of super classes, something like this:
>
>
> class XtendFileTemplate extends BaseTemplate {
>
> XtendFileTemplate(DslNode pNode) {
> super(pNode)
> }
>
>
Re: (no subject) [message #725427 is a reply to message #671378] Wed, 14 September 2011 18:29 Go to previous message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

+1.

has a feature request been filed?

also should be able to initialize fields.
Previous Topic:Quick fixes for CompleteOCLEObjectValidator?
Next Topic:ImportUriGlobalScopeProvider can not find resource
Goto Forum:
  


Current Time: Fri Apr 19 18:45:34 GMT 2024

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

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

Back to the top