Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Sorting numbers in a table control
[EMF Forms] Sorting numbers in a table control [message #1793925] Mon, 20 August 2018 14:30 Go to next message
Nikola Veber is currently offline Nikola VeberFriend
Messages: 31
Registered: December 2017
Member
Hi everyone,

I have just noticed a minor problem with my tables. If there is a numerical column, when items are sorted, it si done lexicographically.

index.php/fa/33665/0/

(tested with emfforms 1.15 and 1.17)

Is there a way to modify this behaviour?



Thanks,
Nikola
  • Attachment: table.png
    (Size: 2.31KB, Downloaded 348 times)
Re: [EMF Forms] Sorting numbers in a table control [message #1794023 is a reply to message #1793925] Wed, 22 August 2018 14:23 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 174
Registered: May 2015
Senior Member
Hi Nikola,

could you open a bug report for this.
In the meantime you can fix this by providing your own table renderer and overriding the org.eclipse.emf.ecp.view.spi.table.swt.TableControlSWTRenderer.compare(Viewer, Object, Object, int, int) method.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Sorting numbers in a table control [message #1794025 is a reply to message #1794023] Wed, 22 August 2018 15:31 Go to previous messageGo to next message
Nikola Veber is currently offline Nikola VeberFriend
Messages: 31
Registered: December 2017
Member
Hi Eugen,
thanks for the feedback! Will open the bug first thing in the morning!


Cheers
Nikola
Re: [EMF Forms] Sorting numbers in a table control [message #1794082 is a reply to message #1794025] Thu, 23 August 2018 09:47 Go to previous message
Nikola Veber is currently offline Nikola VeberFriend
Messages: 31
Registered: December 2017
Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=538197
Previous Topic:Modeling Symposium @ EclipseCon Europe 2018
Next Topic:EMF Extended meta data annotation
Goto Forum:
  


Current Time: Fri Apr 26 23:34:39 GMT 2024

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

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

Back to the top