Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » DragAndDrop- or Move-Command Issue
DragAndDrop- or Move-Command Issue [message #480676] Tue, 18 August 2009 08:17 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

just a single question: what is the operational semantic of a
Drag'n'Drop, respectively MoveCommand? I've noticed, that a movement
(simple reordering the elements in the tree viewer manually) causes a
new object creation? Is this correct?! I was wondering why all features
are unset by moving an element inside the tree. And more precisely: is
it possible to change this behavior by overriding a command?

Thx
/Timothy
Re: DragAndDrop- or Move-Command Issue [message #480680 is a reply to message #480676] Tue, 18 August 2009 08:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Timothy,

Comments below.

Timothy Marc wrote:
> Hi all,
>
> just a single question: what is the operational semantic of a
> Drag'n'Drop, respectively MoveCommand?
If it's within a feature, I'd expect it to result in a move command.
Otherwise I'd expect it typically to result in a remove and an add.
You can look in DragAndDropCommand to see all the possible variations
though, which are quite complex.
> I've noticed, that a movement (simple reordering the elements in the
> tree viewer manually) causes a new object creation? Is this correct?!
I'd not typically expect that, but you'll see comments like this:

// If there isn't an executable command we should maybe try a copy
operation, but only if we're allowed and not doing a link.
//
> I was wondering why all features are unset by moving an element inside
> the tree. And more precisely: is it possible to change this behavior
> by overriding a command?
I can't reproduce this behavior with any of my generated editors so it's
hard to comment about the cause in your case...
>
> Thx
> /Timothy


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: DragAndDrop- or Move-Command Issue [message #480695 is a reply to message #480680] Tue, 18 August 2009 09:04 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Ed, well i see... this is a problem with the subset capapbilities of
UML2 genmodel. I've implemented an algorithm, that derives the
participants for a subset based on a given configuration of elements.
When moving the element in the tree, the already registered participants
are duplicated in the superset. But i changed it now into a more simpler
semantic.

/Timothy

Ed Merks schrieb:
> Timothy,
>
> Comments below.
>
> Timothy Marc wrote:
>> Hi all,
>>
>> just a single question: what is the operational semantic of a
>> Drag'n'Drop, respectively MoveCommand?
> If it's within a feature, I'd expect it to result in a move command.
> Otherwise I'd expect it typically to result in a remove and an add.
> You can look in DragAndDropCommand to see all the possible variations
> though, which are quite complex.
>> I've noticed, that a movement (simple reordering the elements in the
>> tree viewer manually) causes a new object creation? Is this correct?!
> I'd not typically expect that, but you'll see comments like this:
>
> // If there isn't an executable command we should maybe try a copy
> operation, but only if we're allowed and not doing a link.
> //
>> I was wondering why all features are unset by moving an element inside
>> the tree. And more precisely: is it possible to change this behavior
>> by overriding a command?
> I can't reproduce this behavior with any of my generated editors so it's
> hard to comment about the cause in your case...
>>
>> Thx
>> /Timothy
Previous Topic:Re: MweReader class
Next Topic:Re: How to use ecore2xml?
Goto Forum:
  


Current Time: Thu Sep 19 12:36:31 GMT 2024

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

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

Back to the top