Login | Register
My pages Projects Community openCollabNet

gef
Reply to message

* = Required fields
* Subject
* Body
Attachments
Send reply to
Topic
Author (directly in email)
Please type the letters in the image above.

Original message

Author bob.tarling@ntlworld.com
Full name bob.tarling@ntlworld.com
Date 2003-12-12 08:43:35 PST
Message I will be attempting to build a release of GEF 0.10 over this coming weekend.

I discovered the cause of the recent incompatability problems with ArgoUML.

Note that on 0.10, getting a collection from a GEF component and adding to that collection cannot be guaranteed to add that element to GEF. Consider returned collections to be read-only.

eg This will no longer work
Vector v = figNode.getFigs();
v.addElement(newFig);

You must use the specific add methods of GEF classes to add to them
eg This will work
FigNode.add(newFig);

The reason this changed is that internally most collections have changed from Vector to List. In order to give a compatible interface to GEF0.9.6 these lists are copied to Vectors before being returned.

The methods returning Vectors should all be deprecated by now (if not then they will be) and will eventually be replaced with methods returning Lists.

Regards

Bob.


--------------------​--------------------​-
Email provided by http://www.ntlhome.com/



--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ge​f.tigris.org
For additional commands, e-mail: users-help at gef dot tigris dot org