[Xtend] Casting doesn't work [message #538209] |
Sun, 06 June 2010 09:03  |
Eclipse User |
|
|
|
Hi,
I'm writing a model transformation which should add standard properties to all classes. I try to cast the created Property to NamedElement because the Property interface does not contain the setName() method:
create Property testAttribute():
((uml::NamedElement) this).setName("Test");
The Workflow seems to ignore this, because it stops with following error:
2859 ERROR WorkflowRunner - Workflow interrupted. Reason: Couldn't find operation 'setName(String)' for uml::Property.
By the way: If I change the cast to something invalid like:
create Property testAttribute():
((uml::Class) this).setName("Test");
the Editor marks the error but the workflow stops with the same error message like above.
Eclipse version: 3.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08438 seconds