Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » DnD in Sample Ecore Editor
DnD in Sample Ecore Editor [message #426063] Mon, 15 December 2008 15:25 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
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.
Re: DnD in Sample Ecore Editor [message #426067 is a reply to message #426063] Mon, 15 December 2008 15:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30907
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050302040003010903010509
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

V
Re: DnD in Sample Ecore Editor [message #426070 is a reply to message #426067] Mon, 15 December 2008 16:12 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
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.
>>
Previous Topic:[Teneo]: Two issues with version 1.0.1
Next Topic:How to model undirected references?
Goto Forum:
  


Current Time: Wed Feb 26 07:49:36 GMT 2020

Powered by FUDForum. Page generated in 0.02048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top