Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EWL] Accessing model
[EWL] Accessing model [message #639813] Wed, 17 November 2010 22:29 Go to next message
Henning is currently offline HenningFriend
Messages: 32
Registered: October 2010
Member
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 22:36 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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
Previous Topic:Link constraints using Emphatic etc
Next Topic:A Problem Deploying a Plug-in with ETL
Goto Forum:
  


Current Time: Mon Nov 24 20:39:32 GMT 2014

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

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