Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Re-order using drag and drop
Re-order using drag and drop [message #142271] Thu, 12 July 2007 09:22 Go to next message
Keith Clarke is currently offline Keith ClarkeFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I'm creating a GMF editor in which I want to be able to re-order model elements
using drag and drop and have not been able to find a sample or posting on
this newsgroup. I'll use the Taipan sample to illustrate the behaviour I'm
looking for.

I'd like to be able to drag and drop the "Small Items" within the "SmallCargo"
compartment and have the underlying model elements re-ordered. So with this
starting point in the model:

<ships name="ship">
<cargo xsi:type="taipan:SmallItems" article="aaa"/>
<cargo xsi:type="taipan:SmallItems" article="bbb"/>
</ships>

I'd like to be able to drag small item "aaa" below small item "bbb" in the
diagram and have both the diagram and the underlying model end up with this
ordering:

<ships name="ship">
<cargo xsi:type="taipan:SmallItems" article="bbb"/>
<cargo xsi:type="taipan:SmallItems" article="aaa"/>
</ships>

So the change is not just a layout change in the diagram.

Thanks,
Keith
Re-order using drag and drop [message #171191 is a reply to message #142271] Fri, 01 February 2008 16:59 Go to previous message
John Yotka is currently offline John YotkaFriend
Messages: 144
Registered: July 2009
Senior Member
Keith Clarke wrote:
>
> Hi,
>
> I'm creating a GMF editor in which I want to be able to re-order model
> elements using drag and drop and have not been able to find a sample or
> posting on this newsgroup. I'll use the Taipan sample to illustrate the
> behaviour I'm looking for.
>
> I'd like to be able to drag and drop the "Small Items" within the
> "SmallCargo" compartment and have the underlying model elements
> re-ordered. So with this starting point in the model:
>
> <ships name="ship">
> <cargo xsi:type="taipan:SmallItems" article="aaa"/>
> <cargo xsi:type="taipan:SmallItems" article="bbb"/>
> </ships>
>
> I'd like to be able to drag small item "aaa" below small item "bbb" in
> the diagram and have both the diagram and the underlying model end up
> with this ordering:
>
> <ships name="ship">
> <cargo xsi:type="taipan:SmallItems" article="bbb"/>
> <cargo xsi:type="taipan:SmallItems" article="aaa"/>
> </ships>
>
> So the change is not just a layout change in the diagram.
>
> Thanks,
> Keith
>
>
I have the same need, I didn't see any replies this, can anybody help me?

Thanks in advance,
John
Previous Topic:Multiple domain models in a diagram
Next Topic:Feature Value Spec with Enumeration Type
Goto Forum:
  


Current Time: Sat Apr 27 02:30:27 GMT 2024

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

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

Back to the top