Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Alphabetical Ordering of Elements in EMF Editor
Alphabetical Ordering of Elements in EMF Editor [message #1024032] Mon, 25 March 2013 17:23 Go to next message
Skandir Vlaskow is currently offline Skandir Vlaskow
Messages: 1
Registered: March 2013
Junior Member
Hello,

I have created an EMF Editor and would like to have the the elements in alphabetic order.
All the elements are now displayed in the Editor in the order how they are created. For me it would be a great feature to order them by the label of the element like in the Project Explorer.
Does anybody have an idea how to achieve that?
I will be very grateful for any help!

Kind Regards, Skandir
Re: Alphabetical Ordering of Elements in EMF Editor [message #1024266 is a reply to message #1024032] Tue, 26 March 2013 03:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
Comments below.

On 25/03/2013 9:12 PM, Skandir Vlaskow wrote:
> Hello,
>
> I have created an EMF Editor and would like to have the the elements
> in alphabetic order.
Which elements?
> All the elements are now displayed in the Editor in the order how they
> are created. For me it would be a great feature to order them by the
> label of the element like in the Project Explorer.
The item providers always show children in the order in which they
actually appear in the model.
> Does anybody have an idea how to achieve that?
You could sort them in your model.
> I will be very grateful for any help!
>
> Kind Regards, Skandir
Re: Alphabetical Ordering of Elements in EMF Editor [message #1026580 is a reply to message #1024266] Tue, 26 March 2013 12:01 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4093
Registered: July 2009
Senior Member
Hi

If you just want to view a *.ecore alphabetically, you can open the file
with the OCLinECore editor (install OCL Examples and Editors), where you
will find an Ecore-like tree as the Outline with a standard Xtext A-Z
sorting icon.

Regards

Ed Willink


On 26/03/2013 03:00, Ed Merks wrote:
> Comments below.
>
> On 25/03/2013 9:12 PM, Skandir Vlaskow wrote:
>> Hello,
>>
>> I have created an EMF Editor and would like to have the the elements
>> in alphabetic order.
> Which elements?
>> All the elements are now displayed in the Editor in the order how
>> they are created. For me it would be a great feature to order them by
>> the label of the element like in the Project Explorer.
> The item providers always show children in the order in which they
> actually appear in the model.
>> Does anybody have an idea how to achieve that?
> You could sort them in your model.
>> I will be very grateful for any help!
>>
>> Kind Regards, Skandir
>
Previous Topic:How to generate "@since" tags in JDoc?
Next Topic:Registering EMF EPackage for Xtext
Goto Forum:
  


Current Time: Thu Oct 23 00:10:43 GMT 2014

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

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