problem with managing layout model [message #84525] |
Sun, 10 December 2006 07:16  |
Eclipse User |
|
|
|
I do not know how to properly manage my layout model.
In my emf tree i can add elements and they correctly appear on diagram.
In order to delete layout model when I delete model I changed method:
protected boolean shouldDeleteView(View view) {
//return view.isSetElement() ; && view.getElement() != null && //
view.getElement().eIsProxy();
if (view.isSetElement()) {
return view.getElement() != null ?
view.getElement().eIsProxy() || view.getElement().eContainer() ==
null : true;
}
return false;
}
And now delete from emf tree works.
But when I move a subelement(for example: ship small item) from one ship
to another, on emf tree the item is moved, but on diagram it is
duplicated. If next step will be the 'undo in emf tree' both models are
changed correctly (on diagram I have again one small item) !!!
Because in my emf tree i can also see my layout model, so I noticed,
that in the operations i described above thet Node elements in
taipan_diagram file are not alwys updated after my operation on taipan
model.
I suppose that probably I should notify some listeners - but which one,
and where I can find it?
many thanx for help
Wiktor
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03778 seconds