Exemplo n.º 1
0
 public void childMoved(@NotNull PsiTreeChangeEventImpl event) {
   event.setCode(PsiTreeChangeEventImpl.PsiEventType.CHILD_MOVED);
   if (LOG.isDebugEnabled()) {
     LOG.debug(
         "childMoved: child = "
             + event.getChild()
             + ", oldParent = "
             + event.getOldParent()
             + ", newParent = "
             + event.getNewParent());
   }
   fireEvent(event);
   afterChange(true);
 }
Exemplo n.º 2
0
 public void beforeChildMovement(@NotNull PsiTreeChangeEventImpl event) {
   beforeChange(true);
   event.setCode(PsiTreeChangeEventImpl.PsiEventType.BEFORE_CHILD_MOVEMENT);
   if (LOG.isDebugEnabled()) {
     LOG.debug(
         "beforeChildMovement: child = "
             + event.getChild()
             + ", oldParent = "
             + event.getOldParent()
             + ", newParent = "
             + event.getNewParent());
   }
   fireEvent(event);
 }