Skip to content

Allow reordering terminal tabs via drag and drop#2681

Draft
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:feature/terminal-tab-reorder-2679
Draft

Allow reordering terminal tabs via drag and drop#2681
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:feature/terminal-tab-reorder-2679

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Jun 1, 2026

Dragging a terminal tab within the same Terminals view now reorders it to the drop position, the same way editor and view tabs can be rearranged.
Previously a drop inside the originating view was rejected, so tabs could only be moved to a different Terminals view.

The reorder relies on the new CTabFolder.moveItem(int, int) API (SWT 3.135, eclipse-platform/eclipse.platform.swt#3350), which keeps the live terminal control attached instead of recreating it.
The existing cross-view move is left untouched because transferring a terminal to a different view still requires re-parenting.

Draft because it depends on SWT 3.135, which is not yet in the platform target platform, so CI cannot build it until that lands.

Fixes #2679

Dragging a terminal tab within the same Terminals view now reorders it
to the drop position, matching the drag-to-reorder behavior of editor
and view tabs. The drop within the same view was previously rejected.

The reorder uses the new CTabFolder.moveItem(int, int) API, so the live
terminal control stays attached and no longer has to be recreated. The
existing cross-view move (which transfers a terminal to a different
Terminals view) is unchanged, as it still requires re-parenting.

Requires SWT 3.135.

Fixes eclipse-platform#2679
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Test Results

0 files   -     54  0 suites   - 54   0s ⏱️ - 34m 47s
0 tests  -  4 667  0 ✅  -  4 645  0 💤  -  22  0 ❌ ±0 
0 runs   - 11 895  0 ✅  - 11 742  0 💤  - 153  0 ❌ ±0 

Results for commit e6aed94. ± Comparison against base commit 7f435dc.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Jun 1, 2026

Needs the change in SWT, which should be available tomorrow, after that this can be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow reordering terminal instances

1 participant