installEditPolicy in AbstractEditPart [message #239400] |
Thu, 25 October 2007 17:01 |
Cedric Brun Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Hi,
As I was digging in the source code I arrived in the
install/removeEditPolicy source code of GEF. I was quite surprised to see
that the policies are kept in an Object array and that
the "installEditPolicy" do not seem to remove another policy having the
same role key.
I'm quite curious about these choices as it may make sense in another
context, why not using a HashMap or something like that ? Why bothering
about the array allocation when an edit policy is added ?
Thanks for your input,
cheers,
Cédric
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03095 seconds