@Override public void addEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) { assert isValid(); EditorMouseMotionListener wrapper = new EditorMouseMotionListener() { @Override public void mouseMoved(EditorMouseEvent e) { listener.mouseMoved(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } @Override public void mouseDragged(EditorMouseEvent e) { listener.mouseDragged(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } }; myEditorMouseMotionListeners.registerWrapper(listener, wrapper); myDelegate.addEditorMouseMotionListener(wrapper); }
@Override public void removeEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) { EditorMouseMotionListener wrapper = myEditorMouseMotionListeners.removeWrapper(listener); if (wrapper != null) { myDelegate.removeEditorMouseMotionListener(wrapper); } }
@Override public void removeEditorMouseMotionListener(@Nonnull final EditorMouseMotionListener listener) { EditorMouseMotionListener wrapper = myEditorMouseMotionListeners.removeWrapper(listener); if (wrapper != null) { myDelegate.removeEditorMouseMotionListener(wrapper); } }
@Override public void addEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void removeEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void addEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) { getEditor().addEditorMouseMotionListener(listener); }
@Override public void removeEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) { getEditor().removeEditorMouseMotionListener(listener); }
@Override public void addEditorMouseMotionListener(@Nonnull final EditorMouseMotionListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void removeEditorMouseMotionListener(@Nonnull final EditorMouseMotionListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void addEditorMouseMotionListener(@Nonnull final EditorMouseMotionListener listener) { getEditor().addEditorMouseMotionListener(listener); }
@Override public void removeEditorMouseMotionListener(@Nonnull final EditorMouseMotionListener listener) { getEditor().removeEditorMouseMotionListener(listener); }
/** * Adds a listener for receiving notifications about mouse movement in the editor. * * @param listener the listener instance. */ void addEditorMouseMotionListener(@NotNull EditorMouseMotionListener listener);
/** * Removes a listener for receiving notifications about mouse movement in the editor. * * @param listener the listener instance. */ void removeEditorMouseMotionListener(@NotNull EditorMouseMotionListener listener);
/** * Adds a listener for receiving notifications about mouse movement in the editor. * * @param listener the listener instance. */ void addEditorMouseMotionListener(@Nonnull EditorMouseMotionListener listener);
/** * Removes a listener for receiving notifications about mouse movement in the editor. * * @param listener the listener instance. */ void removeEditorMouseMotionListener(@Nonnull EditorMouseMotionListener listener);