[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Label with Feature Seq Initializer via OCL
|
Hi,
what I need is to set the "name"-attribute of model elements at creation
to the Type-Name + incNumber
i.e. the 12th Node "Topic" should at creation get the name: "Topic 12"
A fixed value (i.e. 'aString') works.
Topic.allInstances->size shows in the error log a "Expression
problem:Unrecognized variable: (allInstances)body:Topic.allInstances->size"
Topic.allInstances()->size() shows nothing in the error log but doesn't
have any effect on the name-Attribute.
Topic.name also did result in an similar error log entry,
Topic.name() resulted in "Expression problem:Cannot find operation
(name()) for the type (Topic)body:Topic.name()"
and Topic.getName() did not do anything at all, too.
Let alone did I try to concatenate anthing (which I have no idea how to
acomplish).
I looked for some general GMF-specific OCL documentation but didn't find
any. Isn't there one?
What could I do about this before I abandon OCL?
Stephan