[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Question about: BasicDecorationNodeImpl and persistedChildren feature

Thanks Alex, I will for sure check the java doc next time!

gr. Martin

Alex Boyko wrote:
Hi Martin,

BasicDecorationNode doesn't support children, neither persisted nor transient. This is the design intention to cut down the memory consumption for GMF clients. Many times clients create model elements (views) for text compartment editparts, where the model is the name of the semantic element for example. Label is editable, so clients create an editpart and to create an editpart they create the model element, from which the only necessary information is the semantic hint (type attribute of the view). In a non-API breaking way with minimum adoption required we introduced BasicDecorationNode with a cut down features.

JavaDoc for BasicDecorationNode lists the features that BasicDecorationNode does not support.

BasicDecorationNode shall never have persisted/transient children, source/target edges and styles.

Hope this helps.

Cheers,
Alex




--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxxxxxxxx - mtaal@xxxxxxxxx
Web: www.springsite.com - www.elver.org