Summary: | DND'ing CTabs in editor bar to actually show moving tab as feedback | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Mickael Istria <mistria> | ||||
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P3 | CC: | akurtakov, ericwill, xixiyan | ||||
Version: | 4.8 | ||||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
See Also: |
https://git.eclipse.org/r/135737 https://bugs.eclipse.org/bugs/show_bug.cgi?id=543910 |
||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Mickael Istria
2019-01-21 11:38:31 EST
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. |