Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » VIRTUAL (Checkbox)TreeViewer has inconsistent selection
VIRTUAL (Checkbox)TreeViewer has inconsistent selection [message #1734214] Mon, 06 June 2016 09:27
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 845
Registered: July 2009
Senior Member
I have a SWT.VIRTUAL (Checked)TreeViewer and stepped into the situation mentioned in the site note of the JavaDocs of method

org.eclipse.jface.viewers.ILazyTreeContentProvider.updateElement(Object, int)


NOTE #updateElement(int index) can be used to determine selection values. If TableViewer#replace(Object, int) is not called before returning from this method, selections may have missing or stale elements. In this situation it is suggested that the selection is asked for again after replace() has been called.


I do not understand what is meant with "... that the selection is asked for again after replace() has been called".

The situation is this: select the first entry in the tree, press and hold down the SHIFT key, then quickly scroll down to the bottom of the tree to select the last entry.
Now, the observation is that the tree's selection count does not match that of the tree viewer's selection, i.e. inconsistent selection size between SWT's Tree and the TreeViewer.
Previous Topic:WordWrap in Tabbed Property
Next Topic:issue with tree node
Goto Forum:
  


Current Time: Sat Sep 22 15:34:29 GMT 2018

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

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

Back to the top