Community
Participate
Working Groups
It would be nice if one could cross multi-valued features in a master detail scenario. Currently the only possibility is to create an volatile, transient, derived feature.
Created attachment 192154 [details] Patch Work in Progress ;-)
Matt if you have a second you might want to take a look at my work in progress here. I think we could maybe move this feature upwards if you think it is a good idea.
Created attachment 192242 [details] Patch The first approach was completely bogus stuff and so I've reworked it
There are still areas to improve: a) The diff calculation could be improved currently we fire a change whenever an element is added but this might not make sense b) I need to see how I can implement MultiList Support
Created attachment 192330 [details] Patch
I think it would be more consistent for IElementAccess to be responsible for both getting and setting the value though I guess the problem there is that you want the editing domain to do the changes. Perhaps IElementAccess should return the index of the object so you don't have to do an indexOf, which is going to cause a problem if the list has duplicates...
Created attachment 192979 [details] Patch ok. This patch: a) Makes IElementAccess return an index b) Has a 2 argument informing the element access if it is called for a write operation
(In reply to comment #6) > I think it would be more consistent for IElementAccess to be responsible for > both getting and setting the value though I guess the problem there is that you > want the editing domain to do the changes. Perhaps IElementAccess should Correct. The last patch has a flag which at least informs the write implementor if it is a write operation > return the index of the object so you don't have to do an indexOf, which is > going to cause a problem if the list has duplicates... Good idea. The last patch returns an index.
Created attachment 193342 [details] Patch This patch adds support for inserting/replacing a current value
Ed, can you take a look once more? I think I'm close to releasing this feature
It would be good if the formatting matched... http://wiki.eclipse.org/EMF/Getting_Source#Configuring_Code_Templates.2C_Code_Formatter.2C_and_Import_Order New files should include the copyright header with EPL. Otherwise it looks reasonable.
Thanks - I addressed your comments, added JavaDoc a BIG warning that this API is highly experimental and released it to HEAD but i've no idea which target i should have selected. Do I need to do something special to trigger a build?
Kenn triggers builds manually.
The changes are available in EMF 2.7 M7 or an earlier build.