diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java index 6b5bc9642557..7c183a3b240b 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java @@ -195,6 +195,23 @@ class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse } } }) + .setTargetChecker(new DnDTargetChecker() { + @Override + public boolean update(DnDEvent e) { + final Object attachedObject = e.getAttachedObject(); + if (attachedObject instanceof GutterIconRenderer && checkDumbAware(attachedObject, myEditor.getProject())) { + final GutterDraggableObject draggableObject = ((GutterIconRenderer)attachedObject).getDraggableObject(); + if (draggableObject != null) { + final int line = convertPointToLineNumber(e.getPoint()); + if (line != -1) { + e.setDropPossible(true); + e.setCursor(draggableObject.getCursor(line)); + } + } + } + return true; + } + }) .setImageProvider(new NullableFunction() { @Override public DnDImage fun(DnDActionInfo info) {