Notational Update after programatic move fails [message #109303] |
Tue, 06 March 2007 10:46 |
Eclipse User |
|
|
|
I implemented a programatic operation (with AbstractEMFCommand) that
moves a semantic object from one container to another.
The current implementation of shouldDeleteView in the GMF 1.0.3 diagram
code generation doesn't support such a modification. I currently use
this implementation of shouldDeleteView to detect views that have
deleted or moved semantic elements.
Ist this worth a bugzilla entry or is this customized behaviour?
/**
* @NOTgenerated
*/
protected boolean shouldDeleteView(View view) {
return view.isSetElement() && view.getElement() != null
// Workaround for Bug #157561 and #157148
//&& view.getElement().eIsProxy();
&& (view.getElement().eIsProxy()
|| view.getElement().eResource() == null
|| view.getElement().eContainer() != this.getSemanticHost());
}
Greetings,
Alexander
|
|
|
Powered by
FUDForum. Page generated in 0.05776 seconds