@Override public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) { EditorMouseListener wrapper = myEditorMouseListeners.removeWrapper(listener); // HintManager might have an old editor instance if (wrapper != null) { myDelegate.removeEditorMouseListener(wrapper); } }
@Override public void addEditorMouseListener(@NotNull final EditorMouseListener listener) { assert isValid(); EditorMouseListener wrapper = new EditorMouseListener() { @Override public void mousePressed(EditorMouseEvent e) { listener.mousePressed(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } @Override public void mouseClicked(EditorMouseEvent e) { listener.mouseClicked(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } @Override public void mouseReleased(EditorMouseEvent e) { listener.mouseReleased(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } @Override public void mouseEntered(EditorMouseEvent e) { listener.mouseEntered(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } @Override public void mouseExited(EditorMouseEvent e) { listener.mouseExited(new EditorMouseEvent(EditorWindow.this, e.getMouseEvent(), e.getArea())); } }; myEditorMouseListeners.registerWrapper(listener, wrapper); myDelegate.addEditorMouseListener(wrapper); }
@Override public void removeEditorMouseListener(@Nonnull final EditorMouseListener listener) { EditorMouseListener wrapper = myEditorMouseListeners.removeWrapper(listener); // HintManager might have an old editor instance if (wrapper != null) { myDelegate.removeEditorMouseListener(wrapper); } }
@Override public void addEditorMouseListener(@NotNull final EditorMouseListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void addEditorMouseListener(@NotNull final EditorMouseListener listener) { getEditor().addEditorMouseListener(listener); }
@Override public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) { getEditor().removeEditorMouseListener(listener); }
@Override public void addEditorMouseListener(@Nonnull final EditorMouseListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void removeEditorMouseListener(@Nonnull final EditorMouseListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void addEditorMouseListener(@Nonnull final EditorMouseListener listener) { getEditor().addEditorMouseListener(listener); }
@Override public void removeEditorMouseListener(@Nonnull final EditorMouseListener listener) { getEditor().removeEditorMouseListener(listener); }
/** * Adds a listener for receiving notifications about mouse clicks in the editor and * the mouse entering/exiting the editor. * * @param listener the listener instance. */ void addEditorMouseListener(@NotNull EditorMouseListener listener);
/** * Removes a listener for receiving notifications about mouse clicks in the editor and * the mouse entering/exiting the editor. * * @param listener the listener instance. */ void removeEditorMouseListener(@NotNull EditorMouseListener listener);
/** * Adds a listener for receiving notifications about mouse clicks in the editor and * the mouse entering/exiting the editor. * * @param listener the listener instance. */ void addEditorMouseListener(@Nonnull EditorMouseListener listener);
/** * Removes a listener for receiving notifications about mouse clicks in the editor and * the mouse entering/exiting the editor. * * @param listener the listener instance. */ void removeEditorMouseListener(@Nonnull EditorMouseListener listener);