Skip to content

Commit 73d7166

Browse files
committed
Set DnDManager style in constructor
Prevents dead code warning.
1 parent eb7cf42 commit 73d7166

File tree

1 file changed

+2
-1
lines changed
  • bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon

1 file changed

+2
-1
lines changed

bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/DnDManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class DnDManager {
5151
public static final int HOSTED = 1;
5252
public static final int GHOSTED = 2;
5353
public static final int SIMPLE = 3;
54-
private final int feedbackStyle = SIMPLE;
54+
private int feedbackStyle;
5555

5656
Collection<DragAgent> dragAgents = new ArrayList<>();
5757
Collection<DropAgent> dropAgents = new ArrayList<>();
@@ -105,6 +105,7 @@ public void addImage(Rectangle imageRect, Image image) {
105105
}
106106

107107
public DnDManager(MWindow topLevelWindow) {
108+
feedbackStyle = SIMPLE;
108109
dragWindow = topLevelWindow;
109110
info = new DnDInfo(topLevelWindow);
110111

0 commit comments

Comments
 (0)