Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » creating an Extension Library (documentation?)
creating an Extension Library (documentation?) [message #761501] Tue, 06 December 2011 14:54 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1762
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

in the documentation, when speaking of Xbase extension methods, we read

"Used in combination with the implicit parameter name in closures you
can write extension libraries to create ..."

but the link about extension libraries, does not bring anywhere... so,
how can we create an extension library? I mean, if I have a Java class,
that I'd like to be visible in my DSL Xbase expressions as extension
methods, what should I do? Is it documented somewhere?

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: creating an Extension Library (documentation?) [message #761615 is a reply to message #761501] Tue, 06 December 2011 18:47 Go to previous messageGo to next message
Max Goltzsche is currently offline Max GoltzscheFriend
Messages: 40
Registered: November 2011
Member
Hey,

I already had a similiar problem. You may want to register a custom ExtensionClassNameProvider.
See this solution here: http://www.eclipse.org/forums/index.php/mv/msg/262355/758328/#msg_758328 - yes, you have to add all operators on your own.

regards,
Max

[Updated on: Tue, 06 December 2011 18:48]

Report message to a moderator

Re: creating an Extension Library (documentation?) [message #761923 is a reply to message #761615] Wed, 07 December 2011 09:43 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1762
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 12/06/2011 07:47 PM, Max wrote:
> Hey,
> I already had a similiar problem. You may want to register a custom
> ExtensionClassNameProvider.
> See this solution here:
> http://www.eclipse.org/forums/index.php/mv/msg/262355/758328/#msg_758328
> - yes, you have to add all operators on your own.
>
> regards,
> Max

thanks Max for the link!

Actually I don't need new operators, but only some extension methods
that should be available in the DSL

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:[xtend] Tooling Improvement Proposals
Next Topic:Where has the OnTheFlyCompiler gone?
Goto Forum:
  


Current Time: Mon Mar 30 20:03:57 GMT 2020

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

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

Back to the top