Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Notational Update after programatic move fails
Notational Update after programatic move fails [message #109303] Tue, 06 March 2007 10:46
Eclipse UserFriend
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
Previous Topic:ecore reference xsd
Next Topic:EcoreUtil.Copier behavior
Goto Forum:
  


Current Time: Tue Jul 22 06:34:17 EDT 2025

Powered by FUDForum. Page generated in 0.05776 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top