Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Automatically update EMF resource within GMF editor
Automatically update EMF resource within GMF editor [message #539983] Mon, 14 June 2010 13:44 Go to next message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Hello,
I have generated a GMF Editor using Epsilon.
Now, I want to automatically update an underlying EMF resource on some
specific user actions - but without providing wizards (like in EWL) or using
validation and fixes (like in EVL).
I have looked some examples of how to call the Epsilon modules
programatically and I know where to put this calls, but I am not really sure
what of Epsilon languages I should use to do this as simple as possible.
Any suggestion is welcome.

Regards,
DevDL
Re: Automatically update EMF resource within GMF editor [message #539984 is a reply to message #539983] Mon, 14 June 2010 13:56 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

The simplest and most straightforward language in Epsilon is EOL, so I'd
suggest giving it a go first.

Cheers,
Dimitris

"devdl" <daniel.ladavac@email.t-com.hr> wrote:
> Hello,
> I have generated a GMF Editor using Epsilon.
> Now, I want to automatically update an underlying EMF resource on some
>
> specific user actions - but without providing wizards (like in EWL) or
> using
> validation and fixes (like in EVL).
> I have looked some examples of how to call the Epsilon modules
> programatically and I know where to put this calls, but I am not
> really sure
> what of Epsilon languages I should use to do this as simple as
> possible.
> Any suggestion is welcome.
>
> Regards,
> DevDL
>
>
>
Re: Automatically update EMF resource within GMF editor [message #540018 is a reply to message #539983] Mon, 14 June 2010 15:25 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi DevDL,

What precisely do you mean by 'automatically update'? Any GMF editor
will hand over changes to its underlying EMF resource as the user edits
the diagram. So, I assume you are interested in other types of changes?
What types of changes would these be?

Steffen

On 14/06/2010 14:44, devdl wrote:
> Hello,
> I have generated a GMF Editor using Epsilon.
> Now, I want to automatically update an underlying EMF resource on some
> specific user actions - but without providing wizards (like in EWL) or using
> validation and fixes (like in EVL).
> I have looked some examples of how to call the Epsilon modules
> programatically and I know where to put this calls, but I am not really sure
> what of Epsilon languages I should use to do this as simple as possible.
> Any suggestion is welcome.
>
> Regards,
> DevDL
>
>
>
Re: Automatically update EMF resource within GMF editor [message #540049 is a reply to message #540018] Mon, 14 June 2010 17:00 Go to previous messageGo to next message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Hello Dimitris,

Thanks for your answer.
My application requirements are pretty simple, for example: when user
connects two database tables on diagram, the foreign keys should be
generated.
I already know how EMF/GMF works and how this can be implemented using
notifiers and transactions.
But, I would like to use Epsilon instead describing this logic in a separate
file and call it from Java/EMF to execute these changes on my EMF resource.
This should works the same like the Epsilon Wizard Language or Epsilon
Validation Language works with GMF but without user interaction.
I am new to Epsilon so I just want to see conceptual features and how it can
help me with EMF/GMF, so sorry if I put wrong questions here.
Like Steffen Zschaler suggest me, I will going to learn more about EOL and
then see what I can do next.
I appreciate any suggestion on this issue.

Regards,
DevDL

"Steffen Zschaler" <szschaler@acm.org> wrote in message
news:hv5hm3$g97$1@build.eclipse.org...
> Hi DevDL,
>
> What precisely do you mean by 'automatically update'? Any GMF editor will
> hand over changes to its underlying EMF resource as the user edits the
> diagram. So, I assume you are interested in other types of changes? What
> types of changes would these be?
>
> Steffen
>
> On 14/06/2010 14:44, devdl wrote:
>> Hello,
>> I have generated a GMF Editor using Epsilon.
>> Now, I want to automatically update an underlying EMF resource on some
>> specific user actions - but without providing wizards (like in EWL) or
>> using
>> validation and fixes (like in EVL).
>> I have looked some examples of how to call the Epsilon modules
>> programatically and I know where to put this calls, but I am not really
>> sure
>> what of Epsilon languages I should use to do this as simple as possible.
>> Any suggestion is welcome.
>>
>> Regards,
>> DevDL
>>
>>
>>
Re: Automatically update EMF resource within GMF editor [message #540231 is a reply to message #540049] Tue, 15 June 2010 12:07 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi DevDL,

(I think you got the names switched around exactly the wrong way in your
reply ;-) )

You may want to look at EGL, the Epsilon Generation Language, for your
problem. This allows you to generate a text file from a model, for
example, you could generate an SQL data definition script that you could
then send to your database. To trigger this, you could, for example,
write an ANT build file containing the invocation of your EGL template
(see the documentation on workflows in the EpsilonBook) and the sending
of the SQL to your database (you may have to write your own Ant task for
this bit, see the ANT documentation on-line). You could trigger this
build file by adding an ANT Builder to the set of builders registered
for your project. You can do this using the properties dialogue for your
project.

Cheers,

Steffen

On 14/06/2010 18:00, devdl wrote:
> Hello Dimitris,
>
> Thanks for your answer.
> My application requirements are pretty simple, for example: when user
> connects two database tables on diagram, the foreign keys should be
> generated.
> I already know how EMF/GMF works and how this can be implemented using
> notifiers and transactions.
> But, I would like to use Epsilon instead describing this logic in a separate
> file and call it from Java/EMF to execute these changes on my EMF resource.
> This should works the same like the Epsilon Wizard Language or Epsilon
> Validation Language works with GMF but without user interaction.
> I am new to Epsilon so I just want to see conceptual features and how it can
> help me with EMF/GMF, so sorry if I put wrong questions here.
> Like Steffen Zschaler suggest me, I will going to learn more about EOL and
> then see what I can do next.
> I appreciate any suggestion on this issue.
>
> Regards,
> DevDL
>
> "Steffen Zschaler"<szschaler@acm.org> wrote in message
> news:hv5hm3$g97$1@build.eclipse.org...
>
>> Hi DevDL,
>>
>> What precisely do you mean by 'automatically update'? Any GMF editor will
>> hand over changes to its underlying EMF resource as the user edits the
>> diagram. So, I assume you are interested in other types of changes? What
>> types of changes would these be?
>>
>> Steffen
>>
>> On 14/06/2010 14:44, devdl wrote:
>>
>>> Hello,
>>> I have generated a GMF Editor using Epsilon.
>>> Now, I want to automatically update an underlying EMF resource on some
>>> specific user actions - but without providing wizards (like in EWL) or
>>> using
>>> validation and fixes (like in EVL).
>>> I have looked some examples of how to call the Epsilon modules
>>> programatically and I know where to put this calls, but I am not really
>>> sure
>>> what of Epsilon languages I should use to do this as simple as possible.
>>> Any suggestion is welcome.
>>>
>>> Regards,
>>> DevDL
>>>
>>>
>>>
>>>
>
>
Re: Automatically update EMF resource within GMF editor [message #540380 is a reply to message #540231] Tue, 15 June 2010 22:04 Go to previous messageGo to next message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Hi Steffen,

First of all sorry for wrong names, it happens ;-)
I have took some time to learn and try the use of the EOL language - must
say it is very cool and simple (at least that I have tried and understood in
1-2 days).
Yes, I am going to use the EGL for generation of SQL scripts but I will
invoke the generation not through ANT but directy with Epsilon API (like is
shown in examples project org.eclipse.epsilon.examples.standalone) - and I
hope that's right way.
However, the problem I have descibed at start of this topic was not
generating the SQL for my EMF/GMF model, even that is also requirement as I
confirm above.
My initial idea was to execute some logic from an EOL file on my EMF
resource at some user actions in GMF editor - have tried that and it works
but there is no some benefits, it just complicates the code, and I will use
standard EMF for that.

Regards,
DevDL
(Croatia)

"Steffen Zschaler" <szschaler@acm.org> wrote in message
news:hv7qf1$eb7$1@build.eclipse.org...
> Hi DevDL,
>
> (I think you got the names switched around exactly the wrong way in your
> reply ;-) )
>
> You may want to look at EGL, the Epsilon Generation Language, for your
> problem. This allows you to generate a text file from a model, for
> example, you could generate an SQL data definition script that you could
> then send to your database. To trigger this, you could, for example, write
> an ANT build file containing the invocation of your EGL template (see the
> documentation on workflows in the EpsilonBook) and the sending of the SQL
> to your database (you may have to write your own Ant task for this bit,
> see the ANT documentation on-line). You could trigger this build file by
> adding an ANT Builder to the set of builders registered for your project.
> You can do this using the properties dialogue for your project.
>
> Cheers,
>
> Steffen
>
> On 14/06/2010 18:00, devdl wrote:
>> Hello Dimitris,
>>
>> Thanks for your answer.
>> My application requirements are pretty simple, for example: when user
>> connects two database tables on diagram, the foreign keys should be
>> generated.
>> I already know how EMF/GMF works and how this can be implemented using
>> notifiers and transactions.
>> But, I would like to use Epsilon instead describing this logic in a
>> separate
>> file and call it from Java/EMF to execute these changes on my EMF
>> resource.
>> This should works the same like the Epsilon Wizard Language or Epsilon
>> Validation Language works with GMF but without user interaction.
>> I am new to Epsilon so I just want to see conceptual features and how it
>> can
>> help me with EMF/GMF, so sorry if I put wrong questions here.
>> Like Steffen Zschaler suggest me, I will going to learn more about EOL
>> and
>> then see what I can do next.
>> I appreciate any suggestion on this issue.
>>
>> Regards,
>> DevDL
>>
>> "Steffen Zschaler"<szschaler@acm.org> wrote in message
>> news:hv5hm3$g97$1@build.eclipse.org...
>>
>>> Hi DevDL,
>>>
>>> What precisely do you mean by 'automatically update'? Any GMF editor
>>> will
>>> hand over changes to its underlying EMF resource as the user edits the
>>> diagram. So, I assume you are interested in other types of changes? What
>>> types of changes would these be?
>>>
>>> Steffen
>>>
>>> On 14/06/2010 14:44, devdl wrote:
>>>
>>>> Hello,
>>>> I have generated a GMF Editor using Epsilon.
>>>> Now, I want to automatically update an underlying EMF resource on some
>>>> specific user actions - but without providing wizards (like in EWL) or
>>>> using
>>>> validation and fixes (like in EVL).
>>>> I have looked some examples of how to call the Epsilon modules
>>>> programatically and I know where to put this calls, but I am not really
>>>> sure
>>>> what of Epsilon languages I should use to do this as simple as
>>>> possible.
>>>> Any suggestion is welcome.
>>>>
>>>> Regards,
>>>> DevDL
>>>>
>>>>
>>>>
>>>>
>>
>>
Re: Automatically update EMF resource within GMF editor [message #540474 is a reply to message #540380] Wed, 16 June 2010 10:04 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

On 15/06/2010 23:04, devdl wrote:
> Hi Steffen,
>
> First of all sorry for wrong names, it happens ;-)
> I have took some time to learn and try the use of the EOL language - must
> say it is very cool and simple (at least that I have tried and understood in
> 1-2 days).

Thanks for your feedback :)

> Yes, I am going to use the EGL for generation of SQL scripts but I will
> invoke the generation not through ANT but directy with Epsilon API (like is
> shown in examples project org.eclipse.epsilon.examples.standalone) - and I
> hope that's right way.
> However, the problem I have descibed at start of this topic was not
> generating the SQL for my EMF/GMF model, even that is also requirement as I
> confirm above.
> My initial idea was to execute some logic from an EOL file on my EMF
> resource at some user actions in GMF editor - have tried that and it works
> but there is no some benefits, it just complicates the code, and I will use
> standard EMF for that.

I think this all makes sense. EOL is a bit more concise than Java for
complex queries over models but in some cases this doesn't justify the
overhead of using an additional language.

>
> Regards,
> DevDL
> (Croatia)
>

Cheers,
Dimitris

> "Steffen Zschaler"<szschaler@acm.org> wrote in message
> news:hv7qf1$eb7$1@build.eclipse.org...
>> Hi DevDL,
>>
>> (I think you got the names switched around exactly the wrong way in your
>> reply ;-) )
>>
>> You may want to look at EGL, the Epsilon Generation Language, for your
>> problem. This allows you to generate a text file from a model, for
>> example, you could generate an SQL data definition script that you could
>> then send to your database. To trigger this, you could, for example, write
>> an ANT build file containing the invocation of your EGL template (see the
>> documentation on workflows in the EpsilonBook) and the sending of the SQL
>> to your database (you may have to write your own Ant task for this bit,
>> see the ANT documentation on-line). You could trigger this build file by
>> adding an ANT Builder to the set of builders registered for your project.
>> You can do this using the properties dialogue for your project.
>>
>> Cheers,
>>
>> Steffen
>>
>> On 14/06/2010 18:00, devdl wrote:
>>> Hello Dimitris,
>>>
>>> Thanks for your answer.
>>> My application requirements are pretty simple, for example: when user
>>> connects two database tables on diagram, the foreign keys should be
>>> generated.
>>> I already know how EMF/GMF works and how this can be implemented using
>>> notifiers and transactions.
>>> But, I would like to use Epsilon instead describing this logic in a
>>> separate
>>> file and call it from Java/EMF to execute these changes on my EMF
>>> resource.
>>> This should works the same like the Epsilon Wizard Language or Epsilon
>>> Validation Language works with GMF but without user interaction.
>>> I am new to Epsilon so I just want to see conceptual features and how it
>>> can
>>> help me with EMF/GMF, so sorry if I put wrong questions here.
>>> Like Steffen Zschaler suggest me, I will going to learn more about EOL
>>> and
>>> then see what I can do next.
>>> I appreciate any suggestion on this issue.
>>>
>>> Regards,
>>> DevDL
>>>
>>> "Steffen Zschaler"<szschaler@acm.org> wrote in message
>>> news:hv5hm3$g97$1@build.eclipse.org...
>>>
>>>> Hi DevDL,
>>>>
>>>> What precisely do you mean by 'automatically update'? Any GMF editor
>>>> will
>>>> hand over changes to its underlying EMF resource as the user edits the
>>>> diagram. So, I assume you are interested in other types of changes? What
>>>> types of changes would these be?
>>>>
>>>> Steffen
>>>>
>>>> On 14/06/2010 14:44, devdl wrote:
>>>>
>>>>> Hello,
>>>>> I have generated a GMF Editor using Epsilon.
>>>>> Now, I want to automatically update an underlying EMF resource on some
>>>>> specific user actions - but without providing wizards (like in EWL) or
>>>>> using
>>>>> validation and fixes (like in EVL).
>>>>> I have looked some examples of how to call the Epsilon modules
>>>>> programatically and I know where to put this calls, but I am not really
>>>>> sure
>>>>> what of Epsilon languages I should use to do this as simple as
>>>>> possible.
>>>>> Any suggestion is welcome.
>>>>>
>>>>> Regards,
>>>>> DevDL
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Re: Automatically update EMF resource within GMF editor [message #590144 is a reply to message #539983] Mon, 14 June 2010 13:56 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

The simplest and most straightforward language in Epsilon is EOL, so I'd
suggest giving it a go first.

Cheers,
Dimitris

"devdl" <daniel.ladavac@email.t-com.hr> wrote:
> Hello,
> I have generated a GMF Editor using Epsilon.
> Now, I want to automatically update an underlying EMF resource on some
>
> specific user actions - but without providing wizards (like in EWL) or
> using
> validation and fixes (like in EVL).
> I have looked some examples of how to call the Epsilon modules
> programatically and I know where to put this calls, but I am not
> really sure
> what of Epsilon languages I should use to do this as simple as
> possible.
> Any suggestion is welcome.
>
> Regards,
> DevDL
>
>
>
Re: Automatically update EMF resource within GMF editor [message #590154 is a reply to message #539983] Mon, 14 June 2010 15:25 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi DevDL,

What precisely do you mean by 'automatically update'? Any GMF editor
will hand over changes to its underlying EMF resource as the user edits
the diagram. So, I assume you are interested in other types of changes?
What types of changes would these be?

Steffen

On 14/06/2010 14:44, devdl wrote:
> Hello,
> I have generated a GMF Editor using Epsilon.
> Now, I want to automatically update an underlying EMF resource on some
> specific user actions - but without providing wizards (like in EWL) or using
> validation and fixes (like in EVL).
> I have looked some examples of how to call the Epsilon modules
> programatically and I know where to put this calls, but I am not really sure
> what of Epsilon languages I should use to do this as simple as possible.
> Any suggestion is welcome.
>
> Regards,
> DevDL
>
>
>
Re: Automatically update EMF resource within GMF editor [message #590165 is a reply to message #540018] Mon, 14 June 2010 17:00 Go to previous message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Hello Dimitris,

Thanks for your answer.
My application requirements are pretty simple, for example: when user
connects two database tables on diagram, the foreign keys should be
generated.
I already know how EMF/GMF works and how this can be implemented using
notifiers and transactions.
But, I would like to use Epsilon instead describing this logic in a separate
file and call it from Java/EMF to execute these changes on my EMF resource.
This should works the same like the Epsilon Wizard Language or Epsilon
Validation Language works with GMF but without user interaction.
I am new to Epsilon so I just want to see conceptual features and how it can
help me with EMF/GMF, so sorry if I put wrong questions here.
Like Steffen Zschaler suggest me, I will going to learn more about EOL and
then see what I can do next.
I appreciate any suggestion on this issue.

Regards,
DevDL

"Steffen Zschaler" <szschaler@acm.org> wrote in message
news:hv5hm3$g97$1@build.eclipse.org...
> Hi DevDL,
>
> What precisely do you mean by 'automatically update'? Any GMF editor will
> hand over changes to its underlying EMF resource as the user edits the
> diagram. So, I assume you are interested in other types of changes? What
> types of changes would these be?
>
> Steffen
>
> On 14/06/2010 14:44, devdl wrote:
>> Hello,
>> I have generated a GMF Editor using Epsilon.
>> Now, I want to automatically update an underlying EMF resource on some
>> specific user actions - but without providing wizards (like in EWL) or
>> using
>> validation and fixes (like in EVL).
>> I have looked some examples of how to call the Epsilon modules
>> programatically and I know where to put this calls, but I am not really
>> sure
>> what of Epsilon languages I should use to do this as simple as possible.
>> Any suggestion is welcome.
>>
>> Regards,
>> DevDL
>>
>>
>>
Re: Automatically update EMF resource within GMF editor [message #590186 is a reply to message #540049] Tue, 15 June 2010 12:07 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi DevDL,

(I think you got the names switched around exactly the wrong way in your
reply ;-) )

You may want to look at EGL, the Epsilon Generation Language, for your
problem. This allows you to generate a text file from a model, for
example, you could generate an SQL data definition script that you could
then send to your database. To trigger this, you could, for example,
write an ANT build file containing the invocation of your EGL template
(see the documentation on workflows in the EpsilonBook) and the sending
of the SQL to your database (you may have to write your own Ant task for
this bit, see the ANT documentation on-line). You could trigger this
build file by adding an ANT Builder to the set of builders registered
for your project. You can do this using the properties dialogue for your
project.

Cheers,

Steffen

On 14/06/2010 18:00, devdl wrote:
> Hello Dimitris,
>
> Thanks for your answer.
> My application requirements are pretty simple, for example: when user
> connects two database tables on diagram, the foreign keys should be
> generated.
> I already know how EMF/GMF works and how this can be implemented using
> notifiers and transactions.
> But, I would like to use Epsilon instead describing this logic in a separate
> file and call it from Java/EMF to execute these changes on my EMF resource.
> This should works the same like the Epsilon Wizard Language or Epsilon
> Validation Language works with GMF but without user interaction.
> I am new to Epsilon so I just want to see conceptual features and how it can
> help me with EMF/GMF, so sorry if I put wrong questions here.
> Like Steffen Zschaler suggest me, I will going to learn more about EOL and
> then see what I can do next.
> I appreciate any suggestion on this issue.
>
> Regards,
> DevDL
>
> "Steffen Zschaler"<szschaler@acm.org> wrote in message
> news:hv5hm3$g97$1@build.eclipse.org...
>
>> Hi DevDL,
>>
>> What precisely do you mean by 'automatically update'? Any GMF editor will
>> hand over changes to its underlying EMF resource as the user edits the
>> diagram. So, I assume you are interested in other types of changes? What
>> types of changes would these be?
>>
>> Steffen
>>
>> On 14/06/2010 14:44, devdl wrote:
>>
>>> Hello,
>>> I have generated a GMF Editor using Epsilon.
>>> Now, I want to automatically update an underlying EMF resource on some
>>> specific user actions - but without providing wizards (like in EWL) or
>>> using
>>> validation and fixes (like in EVL).
>>> I have looked some examples of how to call the Epsilon modules
>>> programatically and I know where to put this calls, but I am not really
>>> sure
>>> what of Epsilon languages I should use to do this as simple as possible.
>>> Any suggestion is welcome.
>>>
>>> Regards,
>>> DevDL
>>>
>>>
>>>
>>>
>
>
Re: Automatically update EMF resource within GMF editor [message #590191 is a reply to message #540231] Tue, 15 June 2010 22:04 Go to previous message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Hi Steffen,

First of all sorry for wrong names, it happens ;-)
I have took some time to learn and try the use of the EOL language - must
say it is very cool and simple (at least that I have tried and understood in
1-2 days).
Yes, I am going to use the EGL for generation of SQL scripts but I will
invoke the generation not through ANT but directy with Epsilon API (like is
shown in examples project org.eclipse.epsilon.examples.standalone) - and I
hope that's right way.
However, the problem I have descibed at start of this topic was not
generating the SQL for my EMF/GMF model, even that is also requirement as I
confirm above.
My initial idea was to execute some logic from an EOL file on my EMF
resource at some user actions in GMF editor - have tried that and it works
but there is no some benefits, it just complicates the code, and I will use
standard EMF for that.

Regards,
DevDL
(Croatia)

"Steffen Zschaler" <szschaler@acm.org> wrote in message
news:hv7qf1$eb7$1@build.eclipse.org...
> Hi DevDL,
>
> (I think you got the names switched around exactly the wrong way in your
> reply ;-) )
>
> You may want to look at EGL, the Epsilon Generation Language, for your
> problem. This allows you to generate a text file from a model, for
> example, you could generate an SQL data definition script that you could
> then send to your database. To trigger this, you could, for example, write
> an ANT build file containing the invocation of your EGL template (see the
> documentation on workflows in the EpsilonBook) and the sending of the SQL
> to your database (you may have to write your own Ant task for this bit,
> see the ANT documentation on-line). You could trigger this build file by
> adding an ANT Builder to the set of builders registered for your project.
> You can do this using the properties dialogue for your project.
>
> Cheers,
>
> Steffen
>
> On 14/06/2010 18:00, devdl wrote:
>> Hello Dimitris,
>>
>> Thanks for your answer.
>> My application requirements are pretty simple, for example: when user
>> connects two database tables on diagram, the foreign keys should be
>> generated.
>> I already know how EMF/GMF works and how this can be implemented using
>> notifiers and transactions.
>> But, I would like to use Epsilon instead describing this logic in a
>> separate
>> file and call it from Java/EMF to execute these changes on my EMF
>> resource.
>> This should works the same like the Epsilon Wizard Language or Epsilon
>> Validation Language works with GMF but without user interaction.
>> I am new to Epsilon so I just want to see conceptual features and how it
>> can
>> help me with EMF/GMF, so sorry if I put wrong questions here.
>> Like Steffen Zschaler suggest me, I will going to learn more about EOL
>> and
>> then see what I can do next.
>> I appreciate any suggestion on this issue.
>>
>> Regards,
>> DevDL
>>
>> "Steffen Zschaler"<szschaler@acm.org> wrote in message
>> news:hv5hm3$g97$1@build.eclipse.org...
>>
>>> Hi DevDL,
>>>
>>> What precisely do you mean by 'automatically update'? Any GMF editor
>>> will
>>> hand over changes to its underlying EMF resource as the user edits the
>>> diagram. So, I assume you are interested in other types of changes? What
>>> types of changes would these be?
>>>
>>> Steffen
>>>
>>> On 14/06/2010 14:44, devdl wrote:
>>>
>>>> Hello,
>>>> I have generated a GMF Editor using Epsilon.
>>>> Now, I want to automatically update an underlying EMF resource on some
>>>> specific user actions - but without providing wizards (like in EWL) or
>>>> using
>>>> validation and fixes (like in EVL).
>>>> I have looked some examples of how to call the Epsilon modules
>>>> programatically and I know where to put this calls, but I am not really
>>>> sure
>>>> what of Epsilon languages I should use to do this as simple as
>>>> possible.
>>>> Any suggestion is welcome.
>>>>
>>>> Regards,
>>>> DevDL
>>>>
>>>>
>>>>
>>>>
>>
>>
Re: Automatically update EMF resource within GMF editor [message #590197 is a reply to message #540380] Wed, 16 June 2010 10:04 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

On 15/06/2010 23:04, devdl wrote:
> Hi Steffen,
>
> First of all sorry for wrong names, it happens ;-)
> I have took some time to learn and try the use of the EOL language - must
> say it is very cool and simple (at least that I have tried and understood in
> 1-2 days).

Thanks for your feedback :)

> Yes, I am going to use the EGL for generation of SQL scripts but I will
> invoke the generation not through ANT but directy with Epsilon API (like is
> shown in examples project org.eclipse.epsilon.examples.standalone) - and I
> hope that's right way.
> However, the problem I have descibed at start of this topic was not
> generating the SQL for my EMF/GMF model, even that is also requirement as I
> confirm above.
> My initial idea was to execute some logic from an EOL file on my EMF
> resource at some user actions in GMF editor - have tried that and it works
> but there is no some benefits, it just complicates the code, and I will use
> standard EMF for that.

I think this all makes sense. EOL is a bit more concise than Java for
complex queries over models but in some cases this doesn't justify the
overhead of using an additional language.

>
> Regards,
> DevDL
> (Croatia)
>

Cheers,
Dimitris

> "Steffen Zschaler"<szschaler@acm.org> wrote in message
> news:hv7qf1$eb7$1@build.eclipse.org...
>> Hi DevDL,
>>
>> (I think you got the names switched around exactly the wrong way in your
>> reply ;-) )
>>
>> You may want to look at EGL, the Epsilon Generation Language, for your
>> problem. This allows you to generate a text file from a model, for
>> example, you could generate an SQL data definition script that you could
>> then send to your database. To trigger this, you could, for example, write
>> an ANT build file containing the invocation of your EGL template (see the
>> documentation on workflows in the EpsilonBook) and the sending of the SQL
>> to your database (you may have to write your own Ant task for this bit,
>> see the ANT documentation on-line). You could trigger this build file by
>> adding an ANT Builder to the set of builders registered for your project.
>> You can do this using the properties dialogue for your project.
>>
>> Cheers,
>>
>> Steffen
>>
>> On 14/06/2010 18:00, devdl wrote:
>>> Hello Dimitris,
>>>
>>> Thanks for your answer.
>>> My application requirements are pretty simple, for example: when user
>>> connects two database tables on diagram, the foreign keys should be
>>> generated.
>>> I already know how EMF/GMF works and how this can be implemented using
>>> notifiers and transactions.
>>> But, I would like to use Epsilon instead describing this logic in a
>>> separate
>>> file and call it from Java/EMF to execute these changes on my EMF
>>> resource.
>>> This should works the same like the Epsilon Wizard Language or Epsilon
>>> Validation Language works with GMF but without user interaction.
>>> I am new to Epsilon so I just want to see conceptual features and how it
>>> can
>>> help me with EMF/GMF, so sorry if I put wrong questions here.
>>> Like Steffen Zschaler suggest me, I will going to learn more about EOL
>>> and
>>> then see what I can do next.
>>> I appreciate any suggestion on this issue.
>>>
>>> Regards,
>>> DevDL
>>>
>>> "Steffen Zschaler"<szschaler@acm.org> wrote in message
>>> news:hv5hm3$g97$1@build.eclipse.org...
>>>
>>>> Hi DevDL,
>>>>
>>>> What precisely do you mean by 'automatically update'? Any GMF editor
>>>> will
>>>> hand over changes to its underlying EMF resource as the user edits the
>>>> diagram. So, I assume you are interested in other types of changes? What
>>>> types of changes would these be?
>>>>
>>>> Steffen
>>>>
>>>> On 14/06/2010 14:44, devdl wrote:
>>>>
>>>>> Hello,
>>>>> I have generated a GMF Editor using Epsilon.
>>>>> Now, I want to automatically update an underlying EMF resource on some
>>>>> specific user actions - but without providing wizards (like in EWL) or
>>>>> using
>>>>> validation and fixes (like in EVL).
>>>>> I have looked some examples of how to call the Epsilon modules
>>>>> programatically and I know where to put this calls, but I am not really
>>>>> sure
>>>>> what of Epsilon languages I should use to do this as simple as
>>>>> possible.
>>>>> Any suggestion is welcome.
>>>>>
>>>>> Regards,
>>>>> DevDL
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Previous Topic:EPackage Registry View - Drag and Drop support?
Next Topic:EPackage Registry View - Drag and Drop support?
Goto Forum:
  


Current Time: Tue Apr 16 06:27:48 GMT 2024

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

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

Back to the top