Skip to content

Improve Copy operations of Variables & Expressions View#2613

Open
SougandhS wants to merge 1 commit intoeclipse-platform:masterfrom
SougandhS:enhanceCopyExpVar
Open

Improve Copy operations of Variables & Expressions View#2613
SougandhS wants to merge 1 commit intoeclipse-platform:masterfrom
SougandhS:enhanceCopyExpVar

Conversation

@SougandhS
Copy link
Copy Markdown
Contributor

@SougandhS SougandhS commented Apr 6, 2026

Improves copy behavior in Variables and Expressions views for more predictable results. Previously, copying would include the entire row (Name, Value, Type), leading to incorrect clipboard content. Introduces dedicated actions: Copy Variable/Expression for copying only the name/text, and Copy Row for full row content when columns are shown. This aligns copy behavior with IDE standards and user expectations

OLD

image Screenshot 2026-04-06 at 5 50 39 PM

Copies everything shown in the UI

NEW

image

Copies Variable Name only

image

Copies entire row

Same for expressions

image

Fixes : #2596

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Test Results

    54 files  ±0      54 suites  ±0   35m 15s ⏱️ -14s
 4 556 tests ±0   4 533 ✅ ±0   23 💤 ±0  0 ❌ ±0 
12 264 runs  ±0  12 105 ✅ ±0  159 💤 ±0  0 ❌ ±0 

Results for commit 63190ae. ± Comparison against base commit 3f8585f.

♻️ This comment has been updated with latest results.

@SougandhS
Copy link
Copy Markdown
Contributor Author

Hi @iloveeclipse, could you please trigger a co-pilot review for this PR ?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Eclipse Debug Variables and Expressions views’ copy behavior to better match user expectations: copying a variable/expression should copy just its name/text by default, while a separate action can copy the full row content when columns are shown (per issue #2596).

Changes:

  • Added new copy delegates to copy only variable names / expression texts.
  • Added “Copy Row” delegates that keep the existing full-row copy behavior, gated on column mode being enabled.
  • Updated plugin.xml/plugin.properties to contribute the new actions and labels, and removed the old expressions copy delegate.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
.../CopyVariableToClipboardActionDelegate.java New delegate intended to copy only the variable name.
.../CopyVariableRowToClipboardActionDelegate.java New delegate intended to copy full row only when columns are shown.
.../CopyExpressionToClipboardActionDelegate.java New delegate intended to copy only the expression text.
.../CopyExpressionRowToClipboardActionDelegate.java New delegate intended to copy full row only when columns are shown (retains prior label filtering).
.../CopyExpressionsToClipboardActionDelegate.java Removed old expressions copy implementation (row-style).
debug/org.eclipse.debug.ui/plugin.xml Wires in the new actions for Variables/Expressions view popup menus.
debug/org.eclipse.debug.ui/plugin.properties Adds new labels for the new actions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Improves copy behavior in Variables and Expressions views for more
predictable results. Previously, copying would include the entire row
(Name, Value, Type), leading to incorrect clipboard content. Introduces
dedicated actions: Copy Variable/Expression for copying only the
name/text, and Copy Row for full row content when columns are shown.

Fixes : eclipse-platform#2596
@SougandhS SougandhS force-pushed the enhanceCopyExpVar branch from 1a63b4c to 63190ae Compare April 8, 2026 02:05
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.

Copying Variables/Expressions Copies Entire Row Leading to Incorrect Pasting

2 participants