Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Order of the attributes in property view
Order of the attributes in property view [message #634865] Sun, 24 October 2010 17:40 Go to next message
Syed Imran is currently offline Syed ImranFriend
Messages: 12
Registered: July 2009
Location: Cork, Ireland
Junior Member
In GMF editor, the attributes in the properties view are arranged in ascending alphabetical order how override the method so the attributes would appear with the same order of the ecore file.

Need a little hint, kindly
Syed Imran
Re: Order of the attributes in property view [message #635017 is a reply to message #634865] Mon, 25 October 2010 12:29 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

take a look at the EMF FAQ: http://wiki.eclipse.org/EMF/FAQ#How_do_I_preserve_my_propert y_order.2C_i._e._the_order_in_the_ecore_model.2C_in_Property _Sheet_of_the_generated_editor_instead_of_default_alphabetic al_ordering.3F

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Order of the attributes in property view [message #635835 is a reply to message #635017] Thu, 28 October 2010 10:27 Go to previous messageGo to next message
Syed Imran is currently offline Syed ImranFriend
Messages: 12
Registered: July 2009
Location: Cork, Ireland
Junior Member
Hi Aurelien,

Thanks a million.

Syed Imran
Re: Order of the attributes in property view [message #636443 is a reply to message #635017] Mon, 01 November 2010 11:17 Go to previous messageGo to next message
Syed Imran is currently offline Syed ImranFriend
Messages: 12
Registered: July 2009
Location: Cork, Ireland
Junior Member
Hi Aurelien,

I tried the code from the link you mentioned. But for some reason it is not working and property order is not preserved, i.e the order in which they are in my ecore model.

Any idea, what could be the reason.

kindly
Syed Imran

[Updated on: Mon, 01 November 2010 11:17]

Report message to a moderator

Re: Order of the attributes in property view [message #637599 is a reply to message #634865] Sun, 07 November 2010 15:00 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

sorry but no real idea. I'm using customized PropertySheet.

BTW, be sure that you have @generated NOT tag in your source code if you modify it directly in the code generated.

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Order of the attributes in property view [message #645127 is a reply to message #637599] Wed, 15 December 2010 16:22 Go to previous message
Carlos  is currently offline Carlos Friend
Messages: 16
Registered: July 2009
Junior Member
I have posted a method for keeping the order of the attributes in the properties view, as they are defined in the ecore model, for a GMF generated diagram editor, in this other thread:

http://www.eclipse.org/forums/index.php?t=msg&goto=64511 9&S=2e267f0f1cc1dbdb748f32b9e95bc0a0#msg_645119

Carlos
Previous Topic:Programmatically hide one property from properties view
Next Topic:Manipulate gmf diagram in a non eclipse environment
Goto Forum:
  


Current Time: Thu Apr 18 04:55:51 GMT 2024

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

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

Back to the top