[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Retrieve properties when loading a diagram

Hello Alex, thanks for the answer.

That's what I was thinking too. The problem was that I was stuck on how to retrieve the properties of the node from within my edit part.

I finally found a solution (I hope it is correct, but it works fine anyway) by calling: ((View)basicGetModel()).getElement()

in my edit part. The getElement returns my model object associated with my edit part (which I need to cast to the correct type). I can then simply access the properties on this object.

Thanks for the help.
Cédric