Community
Participate
Working Groups
Most recent software that use tabs make that when DND'ing tabs to re-order them, the tab is shown as feedback when moving: ie other tabs are moved for "preview" when DNDing. It would be interesting to have it in SWT.
One possibility seems to use widget.print(...) on the tab folder, and to use this image either as a cursor or as other feedback when moving the tab.
Xi, the goal here is to have smth like firefox tab dragging. Please have a look and let's discuss whether it seems feasible.
New Gerrit change created: https://git.eclipse.org/r/135737
(In reply to Eclipse Genie from comment #3) > New Gerrit change created: https://git.eclipse.org/r/135737 Hey Xi, this is interesting! Would you be able to produce a video or an animated gif to see how it looks like?
(In reply to Eclipse Genie from comment #3) > New Gerrit change created: https://git.eclipse.org/r/135737 It looks like there are two things involved here: 1) Showing the moving tab as feedback while dragging. This can be done using the existing functionalities provided by SWT. The snippet attached uses a captured image of the Tab/Tab+Editor as a Cursor while the drag is happening to show the tab. 2) Making the other tabs in the folder move to adjust for space when the dragged tab is inserted/removed in/from the folder. Still need to investigate how this can be done, not sure if the transitions can be animated.
Created attachment 277274 [details] screencast
(In reply to Mickael Istria from comment #4) > (In reply to Eclipse Genie from comment #3) > > New Gerrit change created: https://git.eclipse.org/r/135737 > > Hey Xi, this is interesting! > Would you be able to produce a video or an animated gif to see how it looks > like? Sure, see #6. It's still missing all the animated transition and the dragged tab is not isolated from the rest when dragging.