Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRow Selection
https://www.eclipse.org/forums/index.php/mv/msg/440989/988775/#msg_988775
2012-12-03T06:05:39-00:00Re: Row Selection
https://www.eclipse.org/forums/index.php/mv/msg/440989/988784/#msg_988784
Dirk Fauth2012-12-03T07:46:10-00:00Re: Row Selection
https://www.eclipse.org/forums/index.php/mv/msg/440989/988924/#msg_988924
EventList<HistoryItem> eventList = GlazedLists.eventList(model.getHistoryList());
FilterList<HistoryItem> filterList = new FilterList<HistoryItem>(eventList);
SortedList<HistoryItem> sortedList = new SortedList<HistoryItem> (filterList, null);
IColumnPropertyAccessor<HistoryItem> columnPropertyAccessor = new
ReflectiveColumnPropertyAccessor<HistoryItem>(propertyNames);
ListDataProvider<HistoryItem> bodyDataProvider = new ListDataProvider<HistoryItem>
(sortedList, columnPropertyAccessor);
DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
GlazedListsEventLayer<HistoryItem> glazedListsEventLayer = new
GlazedListsEventLayer<HistoryItem>(bodyDataLayer, eventList);
DefaultBodyLayerStack bodyLayerStack = new
DefaultBodyLayerStack(glazedListsEventLayer);
SelectionLayer selectionLayer = bodyLayerStack.getSelectionLayer();
...
Here is my RowHeaderLayer:
IDataProvider rowHeaderDataProvider = new
DefaultRowHeaderDataProvider(bodyDataProvider);
IUniqueIndexLayer rowHeaderDataLayer = new
DefaultRowHeaderDataLayer(rowHeaderDataProvider);
RowHeaderLayer rowHeaderLayer = new RowHeaderLayer(rowHeaderDataLayer,
bodyDataLayer, selectionLayer);
Thanks for your help,]]>2012-12-03T19:08:41-00:00Re: Row Selection
https://www.eclipse.org/forums/index.php/mv/msg/440989/989008/#msg_989008
Have a look at the DefaultGridLayer. There the init method does the similar thing you are trying to do. Maybe it is just a typo in setting the references.]]>Dirk Fauth2012-12-04T10:04:51-00:00Re: Row Selection
https://www.eclipse.org/forums/index.php/mv/msg/440989/989161/#msg_989161
]]>2012-12-04T22:40:13-00:00