How to use New Element Spec in a Feature Seq Initializer [message #171010] |
Fri, 01 February 2008 04:37  |
Eclipse User |
|
|
|
Hello
I am trying to create a node (called Switch) with 3 ports. I think I
have got the graphics and the domain model right.
However, I would like the 3 ports to be created automatically when I
create a new Switch node. So I guessed that this is something that can
be done using a Feature Initializer.
So in the Node Mapping for Switch I added a Feature Seq Initializer. To
this I added 3 Reference New Element Specs for the contained type of the
ports. At this point validation fails, complaining that the feature
newElementInitializers must have at least 1 value.
Now I do not know what to do. For the New Element Specs I can add a
Feature Seq Initializer, but I have no clue how to use this to say that
I want to create a new element of the port type.
Ideally I would like to achieve the needed functionality without adding
any Java code. Is this possible?
Regards
Tor
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.30361 seconds