Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] New topic in forum Nebula, called Problem sorting on XViewer, by Jim 20100

Title: Eclipse Community Forums
Subject: Problem sorting on XViewer Author: Jim 20100 Date: Wed, 28 June 2017 15:58
Hello,

I display an EMF model in a Xviewer.

The sorting by clicking on the columns header does not work correctly on several columns.

Example:
On the Quantity column it works correctly.
On the Unit Cost Column, it does not sort, and the node tree is even reduced when I click on the column header.

the getBackingData method is very simple, so I don't understand why it works for Quantity and not for Unit Cost:

if (xCol.equals(QuoteXViewerFactoryMain.Quantity_Col))
return (priceObject.getQuantity() != null ? priceObject.getQuantity() : new Double(0));

if (xCol.equals(QuoteXViewerFactoryMain.UnitCost_Col))
return (priceObject.getUnitCost() != null ?priceObject.getUnitCost() : new Double(0));

thx for any help



[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top