Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [Espilon][EWL] Wizard inheritance and call
[Espilon][EWL] Wizard inheritance and call [message #384439] Wed, 06 August 2008 13:46 Go to next message
Patry Olivier is currently offline Patry OlivierFriend
Messages: 54
Registered: July 2009
Member
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
Re: [Espilon][EWL] Wizard inheritance and call [message #384442 is a reply to message #384439] Wed, 06 August 2008 14:36 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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
Re: [Espilon][EWL] Wizard inheritance and call [message #384443 is a reply to message #384442] Wed, 06 August 2008 15:22 Go to previous messageGo to next message
Patry Olivier is currently offline Patry OlivierFriend
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 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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 Go to previous messageGo to next message
Patry Olivier is currently offline Patry OlivierFriend
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 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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] Wizard inheritance and call [message #384457 is a reply to message #384451] Thu, 07 August 2008 09:34 Go to previous messageGo to next message
Patry Olivier is currently offline Patry OlivierFriend
Messages: 54
Registered: July 2009
Member
Dimitrios Kolovos a écrit :
>
> 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).

I try the choose method. If I understand correctly, I have to do:

wizard moveTo {
guard : self.isKindOf(MyType2)
title : 'move me to...'
do {
var myTargetElement : MyType;
myTargetElement := UserInput.choose(MyType.allInstances);
myTargetElement.mytypes2.add(self);
}
}

I get the error:

Method 'choose' not found (same error with chooseMany)

> 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).
>

I expect that a window popup or something like that will appear listing
MyType.allInstances and permit to select (one for choose, some for
chooseMany) and then validate and affect the target var.

Thanks
Re: [Espilon] Wizard inheritance and call [message #384459 is a reply to message #384457] Thu, 07 August 2008 09:47 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Olivier,

You also need to specify a string that acts as the selection dialog title:

myTargetElement := UserInput.choose('Where would you like to move me?' ,
MyType.allInstances);

The same applies to chooseMany

Cheers,
Dimitrios

Olivier PATRY wrote:
> Dimitrios Kolovos a écrit :
>>
>> 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).
>
> I try the choose method. If I understand correctly, I have to do:
>
> wizard moveTo {
> guard : self.isKindOf(MyType2)
> title : 'move me to...'
> do {
> var myTargetElement : MyType;
> myTargetElement := UserInput.choose(MyType.allInstances);
> myTargetElement.mytypes2.add(self);
> }
> }
>
> I get the error:
>
> Method 'choose' not found (same error with chooseMany)
>
> > 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).
> >
>
> I expect that a window popup or something like that will appear listing
> MyType.allInstances and permit to select (one for choose, some for
> chooseMany) and then validate and affect the target var.
>
> Thanks
Re: [Espilon] Wizard inheritance and call [message #384460 is a reply to message #384456] Thu, 07 August 2008 12:33 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Olivier,

> Olivier PATRY wrote:
>
>> 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.
>>

On an update to this I've uploaded the current version of the reference
in
http://epsilonlabs.svn.sourceforge.net/svnroot/epsilonlabs/o rg.eclipse.epsilon.book/EpsilonBook.pdf

It is still a very rough version but we plan to further refine it until
it starts making sense :)

Cheers,
Dimitrios
Re: [Espilon] Wizard inheritance and call [message #384648 is a reply to message #384460] Thu, 07 August 2008 14:13 Go to previous message
Patry Olivier is currently offline Patry OlivierFriend
Messages: 54
Registered: July 2009
Member
Dimitrios Kolovos a écrit :
> Hi Olivier,
>
>> Olivier PATRY wrote:
>>
>>> 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.
>>>
>
> On an update to this I've uploaded the current version of the reference
> in
> http://epsilonlabs.svn.sourceforge.net/svnroot/epsilonlabs/o rg.eclipse.epsilon.book/EpsilonBook.pdf
>
>
> It is still a very rough version but we plan to further refine it until
> it starts making sense :)
>
> Cheers,
> Dimitrios
Thanks, it certainly will help me! I'll give you feedback on this
document (when I had finished to read it).

Olivier
Re: [Espilon][EWL] Wizard inheritance and call [message #618876 is a reply to message #384439] Wed, 06 August 2008 14:36 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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
Re: [Espilon][EWL] Wizard inheritance and call [message #618877 is a reply to message #384442] Wed, 06 August 2008 15:22 Go to previous message
Patry Olivier is currently offline Patry OlivierFriend
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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 Go to previous message
Patry Olivier is currently offline Patry OlivierFriend
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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] Wizard inheritance and call [message #618892 is a reply to message #384451] Thu, 07 August 2008 09:34 Go to previous message
Patry Olivier is currently offline Patry OlivierFriend
Messages: 54
Registered: July 2009
Member
Dimitrios Kolovos a écrit :
>
> 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).

I try the choose method. If I understand correctly, I have to do:

wizard moveTo {
guard : self.isKindOf(MyType2)
title : 'move me to...'
do {
var myTargetElement : MyType;
myTargetElement := UserInput.choose(MyType.allInstances);
myTargetElement.mytypes2.add(self);
}
}

I get the error:

Method 'choose' not found (same error with chooseMany)

> 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).
>

I expect that a window popup or something like that will appear listing
MyType.allInstances and permit to select (one for choose, some for
chooseMany) and then validate and affect the target var.

Thanks
Re: [Espilon] Wizard inheritance and call [message #618894 is a reply to message #384457] Thu, 07 August 2008 09:47 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Olivier,

You also need to specify a string that acts as the selection dialog title:

myTargetElement := UserInput.choose('Where would you like to move me?' ,
MyType.allInstances);

The same applies to chooseMany

Cheers,
Dimitrios

Olivier PATRY wrote:
> Dimitrios Kolovos a écrit :
>>
>> 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).
>
> I try the choose method. If I understand correctly, I have to do:
>
> wizard moveTo {
> guard : self.isKindOf(MyType2)
> title : 'move me to...'
> do {
> var myTargetElement : MyType;
> myTargetElement := UserInput.choose(MyType.allInstances);
> myTargetElement.mytypes2.add(self);
> }
> }
>
> I get the error:
>
> Method 'choose' not found (same error with chooseMany)
>
> > 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).
> >
>
> I expect that a window popup or something like that will appear listing
> MyType.allInstances and permit to select (one for choose, some for
> chooseMany) and then validate and affect the target var.
>
> Thanks
Re: [Espilon] Wizard inheritance and call [message #618895 is a reply to message #384456] Thu, 07 August 2008 12:33 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Olivier,

> Olivier PATRY wrote:
>
>> 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.
>>

On an update to this I've uploaded the current version of the reference
in
http://epsilonlabs.svn.sourceforge.net/svnroot/epsilonlabs/o rg.eclipse.epsilon.book/EpsilonBook.pdf

It is still a very rough version but we plan to further refine it until
it starts making sense :)

Cheers,
Dimitrios
Re: [Espilon] Wizard inheritance and call [message #618898 is a reply to message #384460] Thu, 07 August 2008 14:13 Go to previous message
Patry Olivier is currently offline Patry OlivierFriend
Messages: 54
Registered: July 2009
Member
Dimitrios Kolovos a écrit :
> Hi Olivier,
>
>> Olivier PATRY wrote:
>>
>>> 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.
>>>
>
> On an update to this I've uploaded the current version of the reference
> in
> http://epsilonlabs.svn.sourceforge.net/svnroot/epsilonlabs/o rg.eclipse.epsilon.book/EpsilonBook.pdf
>
>
> It is still a very rough version but we plan to further refine it until
> it starts making sense :)
>
> Cheers,
> Dimitrios
Thanks, it certainly will help me! I'll give you feedback on this
document (when I had finished to read it).

Olivier
Previous Topic:[Epsilon] Configuring HUTN file
Next Topic:[TCS] Missing Parser Generator???
Goto Forum:
  


Current Time: Fri Mar 29 01:49:33 GMT 2024

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

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

Back to the top