Community
Participate
Working Groups
Created attachment 266669 [details] Project to reproduce the problem In various contexts,using a JFace TreeViewer with a tree using the flag SWT.MULTI and the drag and drop support (org.eclipse.jface.viewers.StructuredViewer.addDragSupport) and refocusing an already selected tree item can hide others tree items by setting a blue background and text color like in the attached picture. I also attached for reproduction a minimal project using an JFace TreeViewer with a SWT.MULTI Tree and a drag and drop support: Steps to reproduce: 1-Import the attached project. 2-Launch a runtime 3-Create a project and a text file inside. 4-Open the text file with the "Sample multi-pages editor" editor. 5-Select the first item. 6-Select the text file in Package explorer. 7-Re click on the first item => KO. Other items disappeared. Then if you comment the line: selectionViewer.addDragSupport(dndOperations, transfers, new DragSourceListener() or if you set the Tree flag to SWT.SINGLE the problem is gone. In some other contexts, with different graphic constructions but still using JFace TreeViewer with SWT.MULTI Tree and Drag and drop support, the problem is not present. Is there something to know when using this combination or is it a bug and is there a workaround?
Created attachment 266670 [details] Picture of the problem
I forgot to tell the problem is at least on Windows 10. Not tested on linux.
(In reply to Pierre Guilet from comment #2) > I forgot to tell the problem is at least on Windows 10. Not tested on linux. Does not appear under Linux, at least Ubuntu 16.10, Java 1.8.0_121-b13, Eclipse Neon.2 and GTK 3.20.9 (neither can the original scenario we had in the context of Sirius).
Even I see the same problem on windows 10. When drag support added to treeviewers and if we select the item currently selected , then the other treeitems become invisible. On linux everything works as expected. Do we have any fix/workaround for this? Note that this happens on win10 only when the SWT.MULTI flag is set on the tree viewer, but for me SWT.MULTI is required. Cheers -Kapil
I have come across the same problem in Windows 7 too. Does this have anything to do with the implementation of TreeViewer? Ksai.
We are migrating Eclipse 3.x to eclipse 4 and running into above problem in both windows 7 and windows 10. Is there a work around for this problem?
In Sirius we implemented a workaround [1] inspired by this patch [2] found in the platform itself. [1] https://git.eclipse.org/r/c/96393 [2] https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=052d5d66f0a1b483abcc639dc36dfb9820a326dc
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Still an issue. I imported the project and it is not fixed in 2020-12