public final class NavBarListener extends java.lang.Object implements ProblemListener, java.awt.event.FocusListener, FileStatusListener, AnActionListener, FileEditorManagerListener, PsiTreeChangeListener, ModuleRootListener, NavBarModelListener, java.beans.PropertyChangeListener, java.awt.event.KeyListener, java.awt.event.WindowFocusListener, LafManagerListener
AnActionListener.Adapter
FileEditorManagerListener.Before
TOPIC
TOPIC
FILE_EDITOR_MANAGER
NAV_BAR
TOPIC
Modifier and Type | Method and Description |
---|---|
void |
afterActionPerformed(AnAction action,
DataContext dataContext,
AnActionEvent event)
Note that using
dataContext in implementing methods is unsafe - it could have been invalidated by the performed action. |
void |
beforeChildAddition(PsiTreeChangeEvent event)
Invoked just before adding a child to the tree.
Parent element is returned by event.getParent() .Added child is returned by event.getChild . |
void |
beforeChildMovement(PsiTreeChangeEvent event)
Invoked just before movement of a child in the tree by changing its parent or by changing its position in the same parent.
Child to be moved is returned by event.getChild() .The old parent is returned by event.getOldParent() .The new parent is returned by event.getNewParent() . |
void |
beforeChildRemoval(PsiTreeChangeEvent event)
Invoked just before removal of a child from the tree.
Child to be removed is returned by event.getChild() .Parent element is returned by event.getParent() . |
void |
beforeChildrenChange(PsiTreeChangeEvent event)
Invoked before a mass change of children of the specified node.
The parent the nodes of which are changing is returned by event.getParent() . |
void |
beforeChildReplacement(PsiTreeChangeEvent event)
Invoked just before replacement of a child in the tree by another element.
Child to be replaced is returned by event.getOldChild() .Parent element is returned by event.getParent() . |
void |
beforePropertyChange(PsiTreeChangeEvent event)
Invoked just before changing of some property of an element.
Element, whose property is to be changed is returned by event.getElement() .The property name is returned by event.getPropertyName() .The old property value is returned by event.getOldValue() . |
void |
childAdded(PsiTreeChangeEvent event)
Invoked just after adding of a new child to the tree.
The added child is returned by event.getChild() .Parent element is returned by event.getParent() . |
void |
childMoved(PsiTreeChangeEvent event)
Invoked just after movement of a child in the tree by changing its parent or by changing its position in the same parent.
The moved child is returned by event.getChild() .The old parent is returned by event.getOldParent() .The new parent is returned by event.getNewParent() . |
void |
childRemoved(PsiTreeChangeEvent event)
Invoked just after removal of a child from the tree.
The removed child is returned by event.getChild() . |
void |
childrenChanged(PsiTreeChangeEvent event)
Invoked after a mass change of children of the specified node.
The parent the nodes of which have changed is returned by event.getParent() . |
void |
childReplaced(PsiTreeChangeEvent event)
Invoked just after replacement of a child in the tree by another element.
The replaced child is returned by event.getOldChild() . |
void |
fileOpened(FileEditorManager manager,
VirtualFile file)
This method is after focus settles down (if requested) in newly created FileEditor.
|
void |
fileStatusChanged(VirtualFile virtualFile) |
void |
fileStatusesChanged()
Indicates that some file statuses were change.
|
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
lookAndFeelChanged(LafManager source) |
void |
modelChanged() |
void |
problemsAppeared(VirtualFile file) |
void |
problemsDisappeared(VirtualFile file) |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
propertyChanged(PsiTreeChangeEvent event)
Invoked just after changing of some property of an element.
Element, whose property has changed is returned by event.getElement() .The property name is returned by event.getPropertyName() .The old property value is returned by event.getOldValue() .The new property value is returned by event.getNewValue() . |
void |
rootsChanged(ModuleRootEvent event) |
void |
selectionChanged() |
void |
windowGainedFocus(java.awt.event.WindowEvent e) |
void |
windowLostFocus(java.awt.event.WindowEvent e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
problemsChanged
beforeActionPerformed, beforeEditorTyping
fileClosed, fileOpenedSync, selectionChanged
beforeRootsChange
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void fileStatusesChanged()
FileStatusListener
fileStatusesChanged
in interface FileStatusListener
public void fileStatusChanged(VirtualFile virtualFile)
fileStatusChanged
in interface FileStatusListener
public void childAdded(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getParent()
.childAdded
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childReplaced(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getOldChild()
. Note that
only equals()
, hashCode()
, isValid()
methods
can be safely invoked for this element, because it's not valid anymore.event.getNewChild()
.event.getParent()
.childReplaced
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childMoved(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getOldParent()
.event.getNewParent()
.childMoved
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childrenChanged(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getParent()
.childrenChanged
in interface PsiTreeChangeListener
event
- the event object describing the change.public void propertyChanged(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getElement()
.event.getPropertyName()
.event.getOldValue()
.event.getNewValue()
.propertyChanged
in interface PsiTreeChangeListener
event
- the event object describing the change.public void rootsChanged(ModuleRootEvent event)
rootsChanged
in interface ModuleRootListener
public void problemsAppeared(VirtualFile file)
problemsAppeared
in interface ProblemListener
public void problemsDisappeared(VirtualFile file)
problemsDisappeared
in interface ProblemListener
public void modelChanged()
modelChanged
in interface NavBarModelListener
public void selectionChanged()
selectionChanged
in interface NavBarModelListener
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void afterActionPerformed(AnAction action, DataContext dataContext, AnActionEvent event)
AnActionListener
dataContext
in implementing methods is unsafe - it could have been invalidated by the performed action.afterActionPerformed
in interface AnActionListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void fileOpened(FileEditorManager manager, VirtualFile file)
FileEditorManagerListener
FileEditorManagerListener.fileOpenedSync(FileEditorManager, VirtualFile, Pair)
is always invoked before this method (in same or previous EDT event).fileOpened
in interface FileEditorManagerListener
FileEditorManagerListener.fileOpenedSync(FileEditorManager, VirtualFile, Pair)
public void lookAndFeelChanged(LafManager source)
lookAndFeelChanged
in interface LafManagerListener
public void windowLostFocus(java.awt.event.WindowEvent e)
windowLostFocus
in interface java.awt.event.WindowFocusListener
public void windowGainedFocus(java.awt.event.WindowEvent e)
windowGainedFocus
in interface java.awt.event.WindowFocusListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void beforeChildAddition(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getParent()
.event.getChild
.beforeChildAddition
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildRemoval(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getParent()
.beforeChildRemoval
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildReplacement(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getOldChild()
.event.getParent()
.beforeChildReplacement
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildMovement(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getOldParent()
.event.getNewParent()
.beforeChildMovement
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildrenChange(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getParent()
.beforeChildrenChange
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforePropertyChange(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getElement()
.event.getPropertyName()
.event.getOldValue()
.beforePropertyChange
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childRemoved(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
. Note that
only equals()
, hashCode()
, isValid()
methods
can be safely invoked for this element, because it's not valid anymore.event.getParent()
.childRemoved
in interface PsiTreeChangeListener
event
- the event object describing the change.