| [news.eclipse.modeling.gmf] Re: many small questions |
Hello TDB,
I suggest you to add appropriate constraint to the corresponding child node mapping and modify generated code (child node EditPart) to call parent node update (see F5 action implementation) on receiving corresponding property change event.1) How can I add/remove children elements in response to a model property change of this element?
AFAIK it is not possible now â EMF resources can not be referenced from .ecore model, but I think you can use EMF âInstance Type Nameâ property to add references to external (existing) classes/interfaces with the appropriate implementation into .ecore model.2) Is there a way to have a property in ecore model that is a reference to a resource (file) in a project.
I suspect it's EResource, but I get a transformation error: attributeWell, I even can not see EResource in my workspace.. Do I miss something? Do you know a name of plugin providing this class/interface?
Sure. You can listen for appropriate changes in notation model - Node.layoutConstraint is an attribute keeping a reference to Bounds instance. BTW, I think external label should be moved together with the original element at least for the diagram nodes/links it should be implemented this way.3) Is there a way to listen to element/figure movement and update external (feature) label location accordingly?
----------------- Alex Shatalin