[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] many small questions
|
Hi everyone!
Sorry for bugging everyone here with stupidities... I'm implementing a
proof-of-concept editor here, so a lot of conceptual questions ;-) I'd
appreciate help with any of the following questions:
1) How can I add/remove children elements in response to a model
property change of this element?
In particular I want to add/remove ports (children) when "resource"
property changes e.g. user points to another resource which has
different ports.
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: attribute is
not transient and thus should be of serializable type (which is
technically true). I really dare to dream of an automagical
resource-selection-dialog as the property editor etc. ;-)
3) Is there a way to listen to element/figure movement and update
external (feature) label location accordingly?
Label is added inside addBorderItem() of the edit part of the element it
corresponds to using BorderItemLocator.
Thank you!!!
Michael