Commit db1d95f
committed
Enable drop operation in Label in workbench
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#6491 parent 634e5f0 commit db1d95f
File tree
2 files changed
+7
-2
lines changed- bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt
- tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt
2 files changed
+7
-2
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
719 | 721 | | |
720 | 722 | | |
721 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
722 | 727 | | |
723 | 728 | | |
724 | 729 | | |
| |||
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRendererTest.java
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
0 commit comments