|
|
Re: DnD in Sample Ecore Editor [message #426070 is a reply to message #426067] |
Mon, 15 December 2008 16:12 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Ed,
fair enough :)
Just wondered. CDOEditor does by default perform move action, and I
wanted to align it with the default Sample Ecore Editor behaviour. I
realized this was happening because the DnD action couldn't determine
the editing domain for CDOEditor. I solved it by adding a new adapter to
CDOEditor that implements IEditingDomainProvider. Then I asked myself...
"why copying by default?"
Now that you expose what move would imply... I'll stick to the behaviour
of Sample Ecore Editor :P
Thanks for you insight!
Cheers,
Víctor.
Ed Merks escribió:
> Víctor,
>
> The would require executing commands in both editors on the two
> different command stacks *and *coordinating their undos, which is too
> tricky for me.
>
>
> Víctor Roldán Betancort wrote:
>> Hi everyone,
>>
>> if you do Drag and Drop in Sample Ecore Editor (having 2 editors
>> opened, different resources), the default action is to create a copy
>> of the dragged object in the target editor (the "+" symbol appears).
>>
>> Is there a reason why the default action is not move?
>>
>> Cheers,
>> Víctor.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03590 seconds