Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Infer static block
Infer static block [message #774204] Tue, 03 January 2012 13:54 Go to next message
rjarana Missing name is currently offline rjarana Missing nameFriend
Messages: 12
Registered: November 2011
Junior Member
Hi!

I need to create a static block in the inferred class. How can I do that?

Thanks!
Re: Infer static block [message #774628 is a reply to message #774204] Wed, 04 January 2012 10:01 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi,

since the static block cannot be referenced externally, it is not
necessary in the inferred model. However, if you want to generate a
static block for an inferred class you'll have to override
JvmModelGenerator#generateBody(JvmGenericType, ImportManager).

You may want to attach the required information as an EAdapter to the
generic type.

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

Am 03.01.12 14:54, schrieb rjarana Mising name:
> Hi!
>
> I need to create a static block in the inferred class. How can I do that?
>
> Thanks!
Previous Topic:Declarative Code Formatter ignores configurations related with parser rules
Next Topic:Automatic validation is not performed
Goto Forum:
  


Current Time: Wed Sep 25 16:27:14 GMT 2024

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

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

Back to the top