Tam,
Please use the newsgroup to ask questions:
news://new.eclipse.org/eclipse.tools.emf
More comments below.
Thanh Tam Du Le wrote:
Hi,
I'm using EMF to create my own tree editor. In my editor, everything is
okay
except the adding new child/ sibling node feature. I found that the
nodes,
which have the same type, are grouped automatically.
I'm assuming that this is the case because they belong to separate
features.
This is
not my desire.
Actually, I want:
- When
adding a new child node, the new node will be added at the end of the
children list of the selected node
Your model itself will need to support that.
-
- When
adding a new sibling node, the new node will be added right after the
selected node.
I
have searched the net, but I couldn't find a solution.
Could you please help me?
If you want different features to have interspersed values you'll need
to make use of feature maps.
http://www.eclipse.org/modeling/emf/docs/overviews/FeatureMap.pdf
(Hard
to explain with my English, hope you understand!)
Thanks
for your help,
Tam
Du
_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emf-dev
|