[EWL] Accessing model [message #639813] |
Wed, 17 November 2010 17:29  |
Eclipse User |
|
|
|
Hi,
I want to refactor my model utilizing EWL but I'm a little stuck on how to delete model elements. In my ETL files I called deleteElement(obj) on my loaded model, but how can I do that with EWL?
I also realized that I cannot use imports in EWL files, however, this would be a great benefit because I could reuse some of my ETL operations!
Henning
|
|
|
Re: [EWL] Accessing model [message #639816 is a reply to message #639813] |
Wed, 17 November 2010 17:36  |
Eclipse User |
|
|
|
Hi Henning,
Henning wrote:
> Hi,
>
> I want to refactor my model utilizing EWL but I'm a little stuck on how
> to delete model elements. In my ETL files I called deleteElement(obj) on
> my loaded model, but how can I do that with EWL?
The implicit name of the loaded model in EWL is "Model". As such, to
delete an element you can call Model.deleteElement(obj) as usual.
>
> I also realized that I cannot use imports in EWL files, however, this
> would be a great benefit because I could reuse some of my ETL operations!
EWL supports importing EOL files - like all other Epsilon languages. If
you have your operations inside a .etl file I'd suggest putting them in
a .eol file and then importing it from both your .etl and .ewl file.
> Henning
Cheers,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.03540 seconds