Java 类com.intellij.openapi.editor.event.EditorMouseListener 实例源码
项目:intellij-ce-playground
文件:EditorWindowImpl.java
@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);
}
}
项目:tools-idea
文件:EditorWindow.java
@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);
}
项目:tools-idea
文件:EditorWindow.java
@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);
}
}
项目:consulo
文件:EditorWindowImpl.java
@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);
}
}
项目:intellij-ce-playground
文件:TextComponentEditor.java
@Override
public void addEditorMouseListener(@NotNull final EditorMouseListener listener) {
throw new UnsupportedOperationException("Not implemented");
}
项目:intellij-ce-playground
文件:TextComponentEditor.java
@Override
public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) {
throw new UnsupportedOperationException("Not implemented");
}
项目:intellij-ce-playground
文件:LazyEditor.java
@Override
public void addEditorMouseListener(@NotNull final EditorMouseListener listener) {
getEditor().addEditorMouseListener(listener);
}
项目:intellij-ce-playground
文件:LazyEditor.java
@Override
public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) {
getEditor().removeEditorMouseListener(listener);
}
项目:tools-idea
文件:TextComponentEditor.java
@Override
public void addEditorMouseListener(@NotNull final EditorMouseListener listener) {
throw new UnsupportedOperationException("Not implemented");
}
项目:tools-idea
文件:TextComponentEditor.java
@Override
public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) {
throw new UnsupportedOperationException("Not implemented");
}
项目:tools-idea
文件:LazyEditor.java
@Override
public void addEditorMouseListener(@NotNull final EditorMouseListener listener) {
getEditor().addEditorMouseListener(listener);
}
项目:tools-idea
文件:LazyEditor.java
@Override
public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) {
getEditor().removeEditorMouseListener(listener);
}
项目:consulo
文件:TextComponentEditorImpl.java
@Override
public void addEditorMouseListener(@Nonnull final EditorMouseListener listener) {
throw new UnsupportedOperationException("Not implemented");
}
项目:consulo
文件:TextComponentEditorImpl.java
@Override
public void removeEditorMouseListener(@Nonnull final EditorMouseListener listener) {
throw new UnsupportedOperationException("Not implemented");
}
项目:consulo
文件:LazyEditor.java
@Override
public void addEditorMouseListener(@Nonnull final EditorMouseListener listener) {
getEditor().addEditorMouseListener(listener);
}
项目:consulo
文件:LazyEditor.java
@Override
public void removeEditorMouseListener(@Nonnull final EditorMouseListener listener) {
getEditor().removeEditorMouseListener(listener);
}
项目:intellij-ce-playground
文件:Editor.java
/**
* 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);
项目:intellij-ce-playground
文件:Editor.java
/**
* 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);
项目:tools-idea
文件:Editor.java
/**
* 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);
项目:tools-idea
文件:Editor.java
/**
* 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);
项目:consulo
文件:Editor.java
/**
* 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);
项目:consulo
文件:Editor.java
/**
* 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);