Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How to "include" separate "lib" files in a task-specific file ?
How to "include" separate "lib" files in a task-specific file ? [message #19760] Sat, 06 June 2009 12:21 Go to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi list,

I'm wondering how can I include in a wizard program another eol program
which includes several operations ? This is needed to me to not repeat
code, of course :-)

Thanks !
Re: How to "include" separate "lib" files in a task-specific file ? [message #19861 is a reply to message #19760] Sat, 06 June 2009 12:26 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stéphane,

You can use the "import" statement for this. For example, if you have
a.ewl and b.eol in the same directory you can write in your a.ewl:

import 'b.eol';

and then you'll be able to use all the operations defined there.

Cheers,
Dimitris

Stephane wrote:
> Hi list,
>
> I'm wondering how can I include in a wizard program another eol program
> which includes several operations ? This is needed to me to not repeat
> code, of course :-)
>
> Thanks !
>
Re: How to "include" separate "lib" files in a task-specific file ? [message #19934 is a reply to message #19861] Sat, 06 June 2009 13:00 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
toooo bad I was looking for include or require....Php man grrrr ;-)

Thanks for your quick response on both threads !
Re: How to "include" separate "lib" files in a task-specific file ? [message #569005 is a reply to message #19760] Sat, 06 June 2009 12:26 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stéphane,

You can use the "import" statement for this. For example, if you have
a.ewl and b.eol in the same directory you can write in your a.ewl:

import 'b.eol';

and then you'll be able to use all the operations defined there.

Cheers,
Dimitris

Stephane wrote:
> Hi list,
>
> I'm wondering how can I include in a wizard program another eol program
> which includes several operations ? This is needed to me to not repeat
> code, of course :-)
>
> Thanks !
>
Re: How to "include" separate "lib" files in a task-specific file ? [message #569031 is a reply to message #19861] Sat, 06 June 2009 13:00 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
toooo bad I was looking for include or require....Php man grrrr ;-)

Thanks for your quick response on both threads !
Previous Topic:How to launch different specific tasks from an eol program
Next Topic:Problem with Operation self.libraries complains
Goto Forum:
  


Current Time: Fri Apr 19 21:18:20 GMT 2024

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

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

Back to the top