Skip to content

Commit cd4b1aa

Browse files
committed
Fixup : test and fix CI errors
1 parent 05d6079 commit cd4b1aa

File tree

1 file changed

+2
-7
lines changed
  • bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt

1 file changed

+2
-7
lines changed

bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@
8989
import org.eclipse.swt.custom.CTabItem;
9090
import org.eclipse.swt.dnd.DND;
9191
import org.eclipse.swt.dnd.DropTarget;
92-
import org.eclipse.swt.dnd.TextTransfer;
93-
import org.eclipse.swt.dnd.Transfer;
9492
import org.eclipse.swt.events.ControlEvent;
9593
import org.eclipse.swt.events.ControlListener;
9694
import org.eclipse.swt.events.MouseAdapter;
@@ -726,11 +724,8 @@ public Object createWidget(MUIElement element, Object parent) {
726724
if (PartStackUtil.isEditorStack(element)) {
727725
createOnboardingControls(tabFolder);
728726
initializeOnboardingInformationInEditorStack(tabFolder);
729-
Label dropLabel = new Label(tabFolder, SWT.NONE);
730-
dropLabel.setText("Drop here"); //$NON-NLS-1$
731-
int drop = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
732-
DropTarget target = new DropTarget(dropLabel, drop);
733-
target.setTransfer(new Transfer[] { TextTransfer.getInstance() }); // or FileTransfer, etc.
727+
Shell shell = Display.getCurrent().getActiveShell();
728+
new DropTarget(shell, DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK);
734729
}
735730
tabFolder.setMRUVisible(getMRUValue());
736731
// Adjust the minimum chars based on the location

0 commit comments

Comments
 (0)