| [oaw] outsourcing of java-extensions in xtend [message #378064] |
Thu, 31 May 2007 05:59  |
Svenja Wendler Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Hi,
can anyone tell me if it is possible to outsource the java extensions
within xtend in one xtend-Template and include this by extension e.g.
extension my::javaextensions;
I made this but it does not seem to work. With the extend rules it works
although the editor marks these calls with errors.
I use eclipse 3.3RC1, oaw 4.1.2
Thank you much.
Svenja
|
|
|
| Re: [oaw] outsourcing of java-extensions in xtend [message #378071 is a reply to message #378064] |
Tue, 05 June 2007 04:16   |
Sven Efftinge Messages: 1667 Registered: July 2009 |
Senior Member |
|
|
Hi Svenja,
should be no problem. Just to make sure I understood what you want.
You have one xtend file
----------- "my/javaextensions.ext"
String doStuff(String s) : JAVA org.Stuff.doStuff(java.lang.String);
-----------
and another
--------- "my/extensions.ext"
extension my::javaextensions;
myExtension() : doStuff("foobar");
----------
This works.
sven
Svenja Wendler wrote:
> Hi,
>
> can anyone tell me if it is possible to outsource the java extensions
> within xtend in one xtend-Template and include this by extension e.g.
> extension my::javaextensions;
>
> I made this but it does not seem to work. With the extend rules it works
> although the editor marks these calls with errors.
> I use eclipse 3.3RC1, oaw 4.1.2
>
> Thank you much.
>
> Svenja
>
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
|
|
| Re: [oaw] outsourcing of java-extensions in xtend [message #601640 is a reply to message #378064] |
Tue, 05 June 2007 04:16  |
Sven Efftinge Messages: 1667 Registered: July 2009 |
Senior Member |
|
|
Hi Svenja,
should be no problem. Just to make sure I understood what you want.
You have one xtend file
----------- "my/javaextensions.ext"
String doStuff(String s) : JAVA org.Stuff.doStuff(java.lang.String);
-----------
and another
--------- "my/extensions.ext"
extension my::javaextensions;
myExtension() : doStuff("foobar");
----------
This works.
sven
Svenja Wendler wrote:
> Hi,
>
> can anyone tell me if it is possible to outsource the java extensions
> within xtend in one xtend-Template and include this by extension e.g.
> extension my::javaextensions;
>
> I made this but it does not seem to work. With the extend rules it works
> although the editor marks these calls with errors.
> I use eclipse 3.3RC1, oaw 4.1.2
>
> Thank you much.
>
> Svenja
>
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
| Re: [oaw] outsourcing of java-extensions in xtend [message #601752 is a reply to message #378071] |
Tue, 12 June 2007 05:42  |
Svenja Wendler Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Yes this was what I wanted but it did not work that way. I have now a
workaround:
I call the java ext in that javautils.ext like
myjavautils.ext
String function (String s) :
JAVA de.mypackage.JavaUtils.function (java.lang.String);
----
String func (String s) :
function(s);
These extensions are available in my other extends. Maybe it depends on my
eclipse configuration.
Svenja
|
|
|
|
Powered by
FUDForum. Page generated in 0.01755 seconds