Home » Archived » GMT (Generative Modeling Technologies) » [Espilon][EWL] Wizard inheritance and call
| |
Re: [Espilon][EWL] Wizard inheritance and call [message #384443 is a reply to message #384442] |
Wed, 06 August 2008 15:22 |
Patry Olivier Messages: 54 Registered: July 2009 |
Member |
|
|
Dimitrios Kolovos a écrit :
> Hi Olivier,
>
> No worries about the previous messages. Could I ask you to please avoid
> prefixing your messages with the name of the individual language (e.g.
> EWL). Just [Epsilon] would suffice.
>
> EWL doesn't support wizard inheritance. However, you can still do what
> you need by splitting your functionality using operations. E.g.
>
> wizard A {
> ...
> do {self.a();}
>
> }
>
> wizard B {
> do {self.a(); self.b();}
> }
>
> operation YourContext a() {...}
>
> operation YourContext b() {...}
>
> If lack of inheritance seems to be creating a mess in your EWL code
> please consider adding a feature request to the bugzilla and we'll try
> to implement it in the next version of Epsilon.
>
> Cheers,
> Dimitrios
>
> Olivier PATRY wrote:
>> Hi,
>>
>> I have some questions about EWL:
>>
>> is there a way to make wizard inherits from another?
>> Is there a way to call wizard from another?
>>
>> Example:
>>
>> wizard A {
>>
>> }
>>
>> wizard B extends A {
>> ...
>> do {
>> C.call / self.C / ??
>> }
>> }
>>
>> wizard C {
>>
>> }
>>
>> Thanks
Thanks for answering Dimitrios.
So, that's what I was thinking, using operation to factorize code.
I'll test this way and give you feedback if there is some lack.
I had another question, a double question!
I search for an EWL syntax reference, I get this pointer:
http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/plugins/org.eclipse.epsilon.help/index.html
But nothing yet avaible for EWL. Is there anywhere a draft of EWL syntax
reference?
So the double-part of my question now, without syntax reference, I
didn't know if it is possible to prompt for "Type" with EWL.
Typically, I wish I could use something like that:
var a : MyType;
a := UserInput.promptType('Choose a type in the above list');
And, get a choose box with all instances of "MyType" (isKindOf(MyType),
not isTypeOf(MyType)
Thanks, very please with this amazing project ;)
Olivier Patry
p.s. okay for the [EWL] in subject ;) sorry
|
|
|
Re: [Espilon] Wizard inheritance and call [message #384451 is a reply to message #384443] |
Wed, 06 August 2008 16:44 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Olivier,
See comments inline
> So, that's what I was thinking, using operation to factorize code.
> I'll test this way and give you feedback if there is some lack.
>
Thanks. Please let us know if this enhancement seems necessary.
> I had another question, a double question!
>
> I search for an EWL syntax reference, I get this pointer:
> http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/plugins/org.eclipse.epsilon.help/index.html
>
>
> But nothing yet avaible for EWL. Is there anywhere a draft of EWL syntax
> reference?
The reference for EWL is http://www.jot.fm/issues/issue_2007_10/paper3.pdf
Also bear in mind that EWL heavily reuses the core EOL language so many
of your questions should be answered by reading the Epsilon Object
Language section of the online docs. We are currently working on putting
together a complete reference of all Epsilon languages and it should be
available soon.
> So the double-part of my question now, without syntax reference, I
> didn't know if it is possible to prompt for "Type" with EWL.
>
> Typically, I wish I could use something like that:
> var a : MyType;
> a := UserInput.promptType('Choose a type in the above list');
>
There is the UserInput.choose(Collection) that allows you to choose one
of the objects in the collection (and also the chooseMany that allows
multiple selections). Could you please give more details about what
you'd like to do with this? (I suspect you need to create an instance of
a type which is determined at runtime).
> And, get a choose box with all instances of "MyType" (isKindOf(MyType),
> not isTypeOf(MyType)
>
> Thanks, very please with this amazing project ;)
Thanks for your kind words :)
>
> Olivier Patry
>
> p.s. okay for the [EWL] in subject ;) sorry
Thanks for your understanding.
Cheers,
Dimitrios
|
|
|
Re: [Espilon] Wizard inheritance and call [message #384454 is a reply to message #384451] |
Thu, 07 August 2008 09:03 |
Patry Olivier Messages: 54 Registered: July 2009 |
Member |
|
|
Dimitrios Kolovos a écrit :
> Hi Olivier,
>
> See comments inline
>
>> So, that's what I was thinking, using operation to factorize code.
>> I'll test this way and give you feedback if there is some lack.
>>
> Thanks. Please let us know if this enhancement seems necessary.
>
>> I had another question, a double question!
>>
>> I search for an EWL syntax reference, I get this pointer:
>> http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/plugins/org.eclipse.epsilon.help/index.html
>>
>>
>> But nothing yet avaible for EWL. Is there anywhere a draft of EWL
>> syntax reference?
>
> The reference for EWL is http://www.jot.fm/issues/issue_2007_10/paper3.pdf
>
> Also bear in mind that EWL heavily reuses the core EOL language so many
> of your questions should be answered by reading the Epsilon Object
> Language section of the online docs. We are currently working on putting
> together a complete reference of all Epsilon languages and it should be
> available soon.
>
>> So the double-part of my question now, without syntax reference, I
>> didn't know if it is possible to prompt for "Type" with EWL.
>>
>> Typically, I wish I could use something like that:
>> var a : MyType;
>> a := UserInput.promptType('Choose a type in the above list');
>>
>
> There is the UserInput.choose(Collection) that allows you to choose one
> of the objects in the collection (and also the chooseMany that allows
> multiple selections). Could you please give more details about what
> you'd like to do with this? (I suspect you need to create an instance of
> a type which is determined at runtime).
>
>> And, get a choose box with all instances of "MyType"
>> (isKindOf(MyType), not isTypeOf(MyType)
>>
>> Thanks, very please with this amazing project ;)
>
> Thanks for your kind words :)
>
>>
>> Olivier Patry
>>
>> p.s. okay for the [EWL] in subject ;) sorry
>
> Thanks for your understanding.
>
> Cheers,
> Dimitrios
Hi,
thanks for this detailled answer.
I already read the EWL document (jot.fm/*/paper3.pdf) but not complete
enough for learning the complete language (such as the existence of
choose/chooseMany (that will be help me to do what I want, I'll try)). I
notice some similarity with EOL (that's why I like the Epsilon project,
all is consistent!).
I discover Epsilon (and Eugenia that will help me too) luckily and
lately for my project, I hope your complete reference of epsilon
language will be ready at time for me! :)
I'll continue my tests and give you feedback/feature request if
necessary. I think the project is a bit young and need feedback, so if I
can, I'll do it!
Tnanks,
Olivier
|
|
|
Re: [Espilon] Wizard inheritance and call [message #384456 is a reply to message #384454] |
Thu, 07 August 2008 09:29 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Olivier PATRY wrote:
> Hi,
>
> thanks for this detailled answer.
> I already read the EWL document (jot.fm/*/paper3.pdf) but not complete
> enough for learning the complete language (such as the existence of
> choose/chooseMany (that will be help me to do what I want, I'll try)). I
> notice some similarity with EOL (that's why I like the Epsilon project,
> all is consistent!).
>
In fact they are a bit more than just similar :) EWL extends EOL which
means that *any* EOL statement is also a valid EWL statement (and the
same applies to all other languages : EVL, ETL etc.).
> I discover Epsilon (and Eugenia that will help me too) luckily and
> lately for my project, I hope your complete reference of epsilon
> language will be ready at time for me! :)
We'll try to have a first (rough and incomplete) version by the end of
next week.
>
> I'll continue my tests and give you feedback/feature request if
> necessary. I think the project is a bit young and need feedback, so if I
> can, I'll do it!
You are right. Epsilon is one of the newest projects of this scope and
any feedback is highly appreciated ;)
>
> Tnanks,
>
> Olivier
Cheers,
Dimitrios
|
|
| | | | | |
Re: [Espilon][EWL] Wizard inheritance and call [message #618877 is a reply to message #384442] |
Wed, 06 August 2008 15:22 |
Patry Olivier Messages: 54 Registered: July 2009 |
Member |
|
|
Dimitrios Kolovos a écrit :
> Hi Olivier,
>
> No worries about the previous messages. Could I ask you to please avoid
> prefixing your messages with the name of the individual language (e.g.
> EWL). Just [Epsilon] would suffice.
>
> EWL doesn't support wizard inheritance. However, you can still do what
> you need by splitting your functionality using operations. E.g.
>
> wizard A {
> ...
> do {self.a();}
>
> }
>
> wizard B {
> do {self.a(); self.b();}
> }
>
> operation YourContext a() {...}
>
> operation YourContext b() {...}
>
> If lack of inheritance seems to be creating a mess in your EWL code
> please consider adding a feature request to the bugzilla and we'll try
> to implement it in the next version of Epsilon.
>
> Cheers,
> Dimitrios
>
> Olivier PATRY wrote:
>> Hi,
>>
>> I have some questions about EWL:
>>
>> is there a way to make wizard inherits from another?
>> Is there a way to call wizard from another?
>>
>> Example:
>>
>> wizard A {
>>
>> }
>>
>> wizard B extends A {
>> ...
>> do {
>> C.call / self.C / ??
>> }
>> }
>>
>> wizard C {
>>
>> }
>>
>> Thanks
Thanks for answering Dimitrios.
So, that's what I was thinking, using operation to factorize code.
I'll test this way and give you feedback if there is some lack.
I had another question, a double question!
I search for an EWL syntax reference, I get this pointer:
http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/plugins/org.eclipse.epsilon.help/index.html
But nothing yet avaible for EWL. Is there anywhere a draft of EWL syntax
reference?
So the double-part of my question now, without syntax reference, I
didn't know if it is possible to prompt for "Type" with EWL.
Typically, I wish I could use something like that:
var a : MyType;
a := UserInput.promptType('Choose a type in the above list');
And, get a choose box with all instances of "MyType" (isKindOf(MyType),
not isTypeOf(MyType)
Thanks, very please with this amazing project ;)
Olivier Patry
p.s. okay for the [EWL] in subject ;) sorry
|
|
|
Re: [Espilon] Wizard inheritance and call [message #618885 is a reply to message #384443] |
Wed, 06 August 2008 16:44 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Olivier,
See comments inline
> So, that's what I was thinking, using operation to factorize code.
> I'll test this way and give you feedback if there is some lack.
>
Thanks. Please let us know if this enhancement seems necessary.
> I had another question, a double question!
>
> I search for an EWL syntax reference, I get this pointer:
> http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/plugins/org.eclipse.epsilon.help/index.html
>
>
> But nothing yet avaible for EWL. Is there anywhere a draft of EWL syntax
> reference?
The reference for EWL is http://www.jot.fm/issues/issue_2007_10/paper3.pdf
Also bear in mind that EWL heavily reuses the core EOL language so many
of your questions should be answered by reading the Epsilon Object
Language section of the online docs. We are currently working on putting
together a complete reference of all Epsilon languages and it should be
available soon.
> So the double-part of my question now, without syntax reference, I
> didn't know if it is possible to prompt for "Type" with EWL.
>
> Typically, I wish I could use something like that:
> var a : MyType;
> a := UserInput.promptType('Choose a type in the above list');
>
There is the UserInput.choose(Collection) that allows you to choose one
of the objects in the collection (and also the chooseMany that allows
multiple selections). Could you please give more details about what
you'd like to do with this? (I suspect you need to create an instance of
a type which is determined at runtime).
> And, get a choose box with all instances of "MyType" (isKindOf(MyType),
> not isTypeOf(MyType)
>
> Thanks, very please with this amazing project ;)
Thanks for your kind words :)
>
> Olivier Patry
>
> p.s. okay for the [EWL] in subject ;) sorry
Thanks for your understanding.
Cheers,
Dimitrios
|
|
|
Re: [Espilon] Wizard inheritance and call [message #618889 is a reply to message #384451] |
Thu, 07 August 2008 09:03 |
Patry Olivier Messages: 54 Registered: July 2009 |
Member |
|
|
Dimitrios Kolovos a écrit :
> Hi Olivier,
>
> See comments inline
>
>> So, that's what I was thinking, using operation to factorize code.
>> I'll test this way and give you feedback if there is some lack.
>>
> Thanks. Please let us know if this enhancement seems necessary.
>
>> I had another question, a double question!
>>
>> I search for an EWL syntax reference, I get this pointer:
>> http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/plugins/org.eclipse.epsilon.help/index.html
>>
>>
>> But nothing yet avaible for EWL. Is there anywhere a draft of EWL
>> syntax reference?
>
> The reference for EWL is http://www.jot.fm/issues/issue_2007_10/paper3.pdf
>
> Also bear in mind that EWL heavily reuses the core EOL language so many
> of your questions should be answered by reading the Epsilon Object
> Language section of the online docs. We are currently working on putting
> together a complete reference of all Epsilon languages and it should be
> available soon.
>
>> So the double-part of my question now, without syntax reference, I
>> didn't know if it is possible to prompt for "Type" with EWL.
>>
>> Typically, I wish I could use something like that:
>> var a : MyType;
>> a := UserInput.promptType('Choose a type in the above list');
>>
>
> There is the UserInput.choose(Collection) that allows you to choose one
> of the objects in the collection (and also the chooseMany that allows
> multiple selections). Could you please give more details about what
> you'd like to do with this? (I suspect you need to create an instance of
> a type which is determined at runtime).
>
>> And, get a choose box with all instances of "MyType"
>> (isKindOf(MyType), not isTypeOf(MyType)
>>
>> Thanks, very please with this amazing project ;)
>
> Thanks for your kind words :)
>
>>
>> Olivier Patry
>>
>> p.s. okay for the [EWL] in subject ;) sorry
>
> Thanks for your understanding.
>
> Cheers,
> Dimitrios
Hi,
thanks for this detailled answer.
I already read the EWL document (jot.fm/*/paper3.pdf) but not complete
enough for learning the complete language (such as the existence of
choose/chooseMany (that will be help me to do what I want, I'll try)). I
notice some similarity with EOL (that's why I like the Epsilon project,
all is consistent!).
I discover Epsilon (and Eugenia that will help me too) luckily and
lately for my project, I hope your complete reference of epsilon
language will be ready at time for me! :)
I'll continue my tests and give you feedback/feature request if
necessary. I think the project is a bit young and need feedback, so if I
can, I'll do it!
Tnanks,
Olivier
|
|
|
Re: [Espilon] Wizard inheritance and call [message #618891 is a reply to message #384454] |
Thu, 07 August 2008 09:29 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Olivier PATRY wrote:
> Hi,
>
> thanks for this detailled answer.
> I already read the EWL document (jot.fm/*/paper3.pdf) but not complete
> enough for learning the complete language (such as the existence of
> choose/chooseMany (that will be help me to do what I want, I'll try)). I
> notice some similarity with EOL (that's why I like the Epsilon project,
> all is consistent!).
>
In fact they are a bit more than just similar :) EWL extends EOL which
means that *any* EOL statement is also a valid EWL statement (and the
same applies to all other languages : EVL, ETL etc.).
> I discover Epsilon (and Eugenia that will help me too) luckily and
> lately for my project, I hope your complete reference of epsilon
> language will be ready at time for me! :)
We'll try to have a first (rough and incomplete) version by the end of
next week.
>
> I'll continue my tests and give you feedback/feature request if
> necessary. I think the project is a bit young and need feedback, so if I
> can, I'll do it!
You are right. Epsilon is one of the newest projects of this scope and
any feedback is highly appreciated ;)
>
> Tnanks,
>
> Olivier
Cheers,
Dimitrios
|
|
| | | | |
Goto Forum:
Current Time: Fri Mar 29 01:49:33 GMT 2024
Powered by FUDForum. Page generated in 0.05147 seconds
|