Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Ordering of model elements based on position
Ordering of model elements based on position [message #63774] Tue, 17 October 2006 10:50 Go to next message
Balraj Kannan is currently offline Balraj KannanFriend
Messages: 28
Registered: July 2009
Junior Member
Hi All,

I was wondering if there is a GMF by which one can control the occurence
of model element based on the postion of the notational element in the
diagram file.

For ex:

Assume form with id "ABC" was added first and then "def" was added. The
model file is generated as follows;

<vxml>
<form id="ABC"/>
<form id="def"/>
</vxml>

Now if the first form is deleted and added again I still want the order to
be same. How can I achieve this?

Can someone please help me with this.

Thanks & regards
Balraj
Re: Ordering of model elements based on position [message #63955 is a reply to message #63774] Tue, 17 October 2006 11:43 Go to previous messageGo to next message
Balraj Kannan is currently offline Balraj KannanFriend
Messages: 28
Registered: July 2009
Junior Member
Hi All,

I was wondering if there is a way in GMF by which one can control the
occurence of model element based on the position of the notational element
in the diagram file.

For ex:

Assume form with id "ABC" was added first and then "def" was added. The
model file is generated as follows;

<vxml>
<form id="ABC"/>
<form id="def"/>
</vxml>

Now if I want to reorder the elements in the model file by exchanging the
positions of the form with id "ABC" with id "def" model should now be
generated as follows:

<vxml>
<form id="def"/>
<form id="ABC"/>
</vxml>

Is there a way to do this?

Can someone please help me with this.

Thanks & regards
Balraj
Re: Ordering of model elements based on position [message #64046 is a reply to message #63774] Tue, 17 October 2006 11:55 Go to previous messageGo to next message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
Ordering within your domain model is not GMF's job. If you care only about
visual representation, check notation.SortingStyle.

Artem

"Balraj Kannan" <balraj.kannan@hp.com> wrote in message
news:1f6e08a0a6ea25fe36cac34ca3ec9914$1@www.eclipse.org...
>
> Hi All,
>
> I was wondering if there is a GMF by which one can control the occurence
> of model element based on the postion of the notational element in the
> diagram file.
>
> For ex:
>
> Assume form with id "ABC" was added first and then "def" was added. The
> model file is generated as follows;
>
> <vxml>
> <form id="ABC"/>
> <form id="def"/>
> </vxml>
>
> Now if the first form is deleted and added again I still want the order to
> be same. How can I achieve this?
>
> Can someone please help me with this.
>
> Thanks & regards
> Balraj
>
>
>
Re: Ordering of model elements based on position [message #64773 is a reply to message #64046] Wed, 18 October 2006 04:10 Go to previous messageGo to next message
Balraj Kannan is currently offline Balraj KannanFriend
Messages: 28
Registered: July 2009
Junior Member
Hi Artem,

Thanks for your reply. I understand this may not be possible from the GMF
framework. But If I intent to handle it programmatically is it possible?
If yes How can I go about it.


Thanks

Best Regards
Balraj
Re: Ordering of model elements based on position [message #64922 is a reply to message #64773] Wed, 18 October 2006 11:08 Go to previous message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
Almost everything is possible ;) To help with "how" it would be great to
know "what" first. Reordering visual elements or domain?


"Balraj Kannan" <balraj.kannan@hp.com> wrote in message
news:a06d01003e10904a332e95900577d7db$1@www.eclipse.org...
> Hi Artem,
> Thanks for your reply. I understand this may not be possible from the GMF
> framework. But If I intent to handle it programmatically is it possible?
> If yes How can I go about it.
>
>
> Thanks
>
> Best Regards
> Balraj
Previous Topic:Proper usage of diagram node selection and subsequent command processing
Next Topic:GMF2 and PropertyProvider
Goto Forum:
  


Current Time: Wed Jan 15 15:09:35 GMT 2025

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

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

Back to the top