Skip to content

Enable dropping files onto labels containing ImageView in the workbench #3102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elsazac
Copy link
Member

@elsazac elsazac commented Jul 10, 2025

Dropping a file onto the top of an image wasn't possible on a label containing an imageView. The issue was previously fixed via eclipse-platform/eclipse.platform.swt#649. However, in the workbench image, dropping was yet to be configured.

The issue is now resolved by calling a DropTarget on the shell obtained from the active IWorkbenchWindow.

Fixes :eclipse-platform/eclipse.platform.swt#649

@elsazac elsazac force-pushed the workbenchImageFix branch from da2be69 to f3dd5c6 Compare July 10, 2025 13:12
@elsazac elsazac changed the title Enable dropping files onto images containing labels in the workbench Enable dropping files onto labels containing ImageView in the workbench Jul 10, 2025
Copy link
Contributor

github-actions bot commented Jul 10, 2025

Test Results

0 files   -  2 778  0 suites   - 2 778   0s ⏱️ - 1h 43m 7s
0 tests  -  7 930  0 ✅  -  7 700  0 💤  - 228  0 ❌  - 2 
0 runs   - 23 345  0 ✅  - 22 597  0 💤  - 746  0 ❌  - 2 

Results for commit f175979. ± Comparison against base commit 0e4942b.

♻️ This comment has been updated with latest results.

@elsazac elsazac force-pushed the workbenchImageFix branch 2 times, most recently from 01b42fa to ca5ffb1 Compare July 11, 2025 14:23
containing an imageView.The issue was previously fixed via
eclipse-platform/eclipse.platform.swt#649.
However, in the workbench, dropping onto the image still didn’t work.

The issue is now resolved by calling a DropTarget on the shell obtained
from the active IWorkbenchWindow.
@elsazac elsazac force-pushed the workbenchImageFix branch from ca5ffb1 to f175979 Compare July 11, 2025 14:35
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.

1 participant