Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [oaw] outsourcing of java-extensions in xtend
[oaw] outsourcing of java-extensions in xtend [message #378064] Thu, 31 May 2007 09:59 Go to next message
Svenja Wendler is currently offline Svenja WendlerFriend
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 08:16 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
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
>
Re: [oaw] outsourcing of java-extensions in xtend [message #378103 is a reply to message #378071] Tue, 12 June 2007 09:42 Go to previous messageGo to next message
Svenja Wendler is currently offline Svenja WendlerFriend
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
Re: [oaw] outsourcing of java-extensions in xtend [message #378105 is a reply to message #378103] Tue, 12 June 2007 13:36 Go to previous message
Svenja Wendler is currently offline Svenja WendlerFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

I found my problem. I declarated the java-extensions private ;(. Now it
works fine ;)
Re: [oaw] outsourcing of java-extensions in xtend [message #601640 is a reply to message #378064] Tue, 05 June 2007 08:16 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
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
>
Re: [oaw] outsourcing of java-extensions in xtend [message #601752 is a reply to message #378071] Tue, 12 June 2007 09:42 Go to previous message
Svenja Wendler is currently offline Svenja WendlerFriend
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
Re: [oaw] outsourcing of java-extensions in xtend [message #601760 is a reply to message #378103] Tue, 12 June 2007 13:36 Go to previous message
Svenja Wendler is currently offline Svenja WendlerFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

I found my problem. I declarated the java-extensions private ;(. Now it
works fine ;)
Previous Topic:oA Workflow versus ant
Next Topic:[TCS] Case sensitive keywords
Goto Forum:
  


Current Time: Fri Apr 19 20:44:07 GMT 2024

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

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

Back to the top