|
|
Re: [EWL] Wizard modifies underlying model [message #643700 is a reply to message #643608] |
Tue, 07 December 2010 21:46 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Hi Dimitris,
Just out of curiosity: Could you clarify why the example wizard given by
Atilla does actually modify the model? From its code, it would seem that
it shouldn't. Is there some Epsilon magic going on that creates some
internal modifications regardless?
Cheers,
Steffen
On 07/12/2010 15:53, Dimitris Kolovos wrote:
> Hi Atilla,
>
> Wizards don't necessarily have to modify the underlying model. To
> prevent wizards from modifying the model at all, you'd need to
> subclass the InMemoryEmfModel class and in particular - off the top of
> my head - override the getPropertySetter(), createInstance() and
> deleteInstance() methods. Hope this helps.
>
> Cheers,
> Dimitris
>
> Bak Attila wrote:
>> Hi,
>>
>> I have the following wizard defined on *.uml model. Everything works
>> perfectly but this wizard modifies the underlying model. Is it ok
>> even if there are no modification operations?
>> Can i prevent a wizard modifiying a model? This might sound strange
>> but i do not want to modify the model just do some code generation
>> for example ;)
>>
>>
>> wizard ServiceWizard {
>>
>> guard: self.isKindOf(Class) and
>> self.getAppliedStereotype("Spring2::Service").isDefined()
>> title: 'Service wizard: ' + self.name
>> do {
>> self.println();
>>
>> }
>>
>> }
>>
>>
>> Thanks for the help.
>> Regards,
>> attila
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03104 seconds